Comparing version 2.52.0 to 2.53.0
## Change Log | ||
### v2.53.0 (2015/02/02) | ||
- [#1396](https://github.com/request/request/pull/1396) Do not rfc3986 escape JSON bodies (@nylen, @simov) | ||
- [#1392](https://github.com/request/request/pull/1392) Improve `timeout` option description (@watson) | ||
### v2.52.0 (2015/02/02) | ||
@@ -4,0 +8,0 @@ - [#1383](https://github.com/request/request/pull/1383) Add missing HTTPS options that were not being passed to tunnel (@brichard19) (@nylen, @brichard19) |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "2.52.0", | ||
"version": "2.53.0", | ||
"author": "Mikeal Rogers <mikeal.rogers@gmail.com>", | ||
@@ -13,0 +13,0 @@ "repository": { |
@@ -602,5 +602,5 @@ # Request — Simplified HTTP client | ||
* `timeout` - Integer containing the number of milliseconds to wait for a | ||
request to respond before aborting the request. Note that increasing the | ||
timeout beyond the OS-wide TCP connection timeout will not work | ||
([the default in Linux is around 20 seconds](http://www.sekuda.com/overriding_the_default_linux_kernel_20_second_tcp_socket_connect_timeout)). | ||
request to respond before aborting the request. Note that if the underlying | ||
TCP connection cannot be established, the OS-wide TCP connection timeout will | ||
overrule the `timeout` option ([the default in Linux is around 20 seconds](http://www.sekuda.com/overriding_the_default_linux_kernel_20_second_tcp_socket_connect_timeout)). | ||
* `proxy` - An HTTP proxy to be used. Supports proxy Auth with Basic Auth, identical to support for the `url` parameter (by embedding the auth info in the `uri`) | ||
@@ -607,0 +607,0 @@ * `oauth` - Options for OAuth HMAC-SHA1 signing. See documentation above. |
@@ -1431,4 +1431,5 @@ 'use strict' | ||
self.body = safeStringify(self.body) | ||
} else { | ||
self.body = rfc3986(self.body) | ||
} | ||
self.body = rfc3986(self.body) | ||
if (!self.hasHeader('content-type')) { | ||
@@ -1440,3 +1441,2 @@ self.setHeader('content-type', 'application/json') | ||
self.body = safeStringify(val) | ||
self.body = rfc3986(self.body) | ||
if (!self.hasHeader('content-type')) { | ||
@@ -1443,0 +1443,0 @@ self.setHeader('content-type', 'application/json') |
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
157065