Skip to content

Commit

Permalink
fix: workaround for CouchDB proxy issue #14
Browse files Browse the repository at this point in the history
* * *

This commit was sponsored by Neighbourhoodie

You can hire Neighbourhoodie for all your
Hoodie / CouchDB / Offline First needs
http://go.hood.ie/thehoodiefirm
  • Loading branch information
gr2m committed Jan 24, 2016
1 parent a3ee647 commit 13858f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/couchdb-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ module.exports = function (server, options, next) {
var location = typeof options.couchdb === 'string'
? options.couchdb
: options.couchdb.location

// TODO: workaroundkf or https://github.com/hoodiehq/hoodie-server-store/issues/14
path = path.replace(/^user\//, 'user%2f')

next(null, location + '/' + path + queryString)
}
}
Expand Down

0 comments on commit 13858f1

Please sign in to comment.