mikeal / node.couchapp.js

Utility for writing couchapps.
Apache License 2.0
406 stars 78 forks source link

line 183 - makes attachment work on windows. #45

Closed osher closed 12 years ago

osher commented 12 years ago

Windows paths come with back-slashes, and that craps the attachments part.

After trying a boiler project and pushing it - I could not get /index.html - error message was of missing attachement.

all files in the attachments section begun with "\" and was not accessible to web requests like they should be. copmaring the design document with some public design documents I found - I saw that the paths are expected with normal slashes, so I figured it's a path problem.

The fix is checked on WinXP, with GoW(0.4.0), Node(0.6.9) and couchapp from the NPM (together with pull request #43).