Comparing version 2.4.2 to 2.4.3
@@ -0,1 +1,6 @@ | ||
2.4.3 | ||
----- | ||
* Keep form.options in options b/c request - @jkrems | ||
https://github.com/groupon/gofer/pull/44 | ||
2.4.2 | ||
@@ -2,0 +7,0 @@ ----- |
@@ -183,3 +183,3 @@ // Generated by CoffeeScript 1.9.0 | ||
Gofer.prototype._request = function(options, cb) { | ||
var defaults, err, form, req, _base, _ref2; | ||
var defaults, err, req, _base, _ref2; | ||
defaults = this._getDefaults(this.defaults, options); | ||
@@ -225,4 +225,2 @@ if (options.methodName == null) { | ||
} | ||
form = options.form; | ||
delete options.form; | ||
if (typeof cb === 'function') { | ||
@@ -243,7 +241,4 @@ req = this.hub.fetch(options, function(error, body, response, responseData) { | ||
} | ||
if (form != null) { | ||
req.form(form); | ||
if (options.forceFormEncoding !== false) { | ||
req.setHeader('Content-Type', GOOD_FORM_ENCODED); | ||
} | ||
if (options.form && options.forceFormEncoding !== false) { | ||
req.setHeader('Content-Type', GOOD_FORM_ENCODED); | ||
} | ||
@@ -250,0 +245,0 @@ return req; |
{ | ||
"name": "gofer", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "A general purpose service client library for node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/gofer.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60792
858