Skip to content
Permalink
Browse files

Talk: set Content-Type header on non-GET requests

  • Loading branch information...
fvdm committed Sep 24, 2012
1 parent 2d6c405 commit ea1c29921bb88620226f03b77d7046183c8f596c
Showing with 1 addition and 0 deletions.
  1. +1 −0 passdock.js
@@ -84,6 +84,7 @@ app.talk = function( method, path, fields, cb ) {
}

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

0 comments on commit ea1c299

Please sign in to comment.
You can’t perform that action at this time.