Skip to content

Commit

Permalink
fix: don’t pass filePath as query parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Nov 22, 2017
1 parent 11fed85 commit 3c2e465
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/index.js
Expand Up @@ -560,6 +560,11 @@ var Client = module.exports = function (config) {
}

Object.keys(def.params).forEach(function (paramName) {
// do not send filePath as query argument
if (paramName === 'filePath') {
return
}

paramName = paramName.replace(/^[$]+/, '')
if (!(paramName in msg)) {
return
Expand Down

0 comments on commit 3c2e465

Please sign in to comment.