Skip to content

Commit

Permalink
Talk: set Content-Type header on non-GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Sep 24, 2012
1 parent 2d6c405 commit ea1c299
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions passdock.js
Expand Up @@ -84,6 +84,7 @@ app.talk = function( method, path, fields, cb ) {
} }


if( method != 'GET' ) { if( method != 'GET' ) {
options.headers['Content-Type'] = 'application/x-www-form-urlencoded'
options.headers['Content-Length'] = fields.length options.headers['Content-Length'] = fields.length
} }


Expand Down

0 comments on commit ea1c299

Please sign in to comment.