Skip to content

Commit

Permalink
Revert changes introduced in request#1282
Browse files Browse the repository at this point in the history
For some reason this change brakes the form option when it's object
  • Loading branch information
simov committed Dec 9, 2014
1 parent 67b4b1a commit f9f96e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.js
Expand Up @@ -1482,7 +1482,7 @@ Request.prototype.json = function (val) {

self._json = true
if (typeof val === 'boolean') {
if (self.body !== undefined) {
if (typeof self.body === 'object') {
self.body = safeStringify(self.body)
if (!self.hasHeader('content-type')) {
self.setHeader('content-type', 'application/json')
Expand Down
File renamed without changes.

0 comments on commit f9f96e6

Please sign in to comment.