Skip to content

Commit

Permalink
updated comment for nano issue. Issue #1844
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Andric committed Feb 9, 2016
1 parent 85008cb commit 84a8763
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions db-nano.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ var couchUrl = process.env.COUCH_URL;
var sanitizeResponse = function(err, body, headers, callback) {
// Remove the `uri` and `statusCode` headers passed in from nano. This
// could potentially leak auth information to the client. See
// https://github.com/dscape/nano/blob/master/lib/nano.js#L195
// TODO: open issue in nano project and patch
// https://github.com/dscape/nano/issues/311
var denyHeaders = ['uri', 'statuscode'];
for (var k in headers) {
if (denyHeaders.indexOf(k.toLowerCase()) >= 0) {
Expand Down

0 comments on commit 84a8763

Please sign in to comment.