Comparing version 2.48.0 to 2.49.0
## Change Log | ||
### v2.49.0 (2014/11/28) | ||
- [#1295](https://github.com/request/request/pull/1295) fix(proxy): no-proxy false positive (@oliamb) | ||
- [#1292](https://github.com/request/request/pull/1292) Upgrade `caseless` to 0.8.1 (@mmalecki) | ||
- [#1276](https://github.com/request/request/pull/1276) Set transfer encoding for multipart/related to chunked by default (@simov) | ||
- [#1275](https://github.com/request/request/pull/1275) Fix multipart content-type headers detection (@simov) | ||
- [#1269](https://github.com/request/request/pull/1269) adds streams example for review (@tbuchok) | ||
- [#1238](https://github.com/request/request/pull/1238) Add examples README.md (@simov) | ||
### v2.48.0 (2014/11/12) | ||
@@ -4,0 +12,0 @@ - [#1263](https://github.com/request/request/pull/1263) Fixed a syntax error / typo in README.md (@xna2) |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "2.48.0", | ||
"version": "2.49.0", | ||
"author": "Mikeal Rogers <mikeal.rogers@gmail.com>", | ||
@@ -27,3 +27,3 @@ "repository": { | ||
"bl": "~0.9.0", | ||
"caseless": "~0.7.0", | ||
"caseless": "~0.8.0", | ||
"forever-agent": "~0.5.0", | ||
@@ -30,0 +30,0 @@ "form-data": "~0.1.0", |
@@ -202,3 +202,4 @@ 'use strict' | ||
noProxyItem = noProxyItem.replace(/^\.*/, '.') | ||
if (hostname.indexOf(noProxyItem) === hostname.length - noProxyItem.length) { | ||
var isMatchedAt = hostname.indexOf(noProxyItem) | ||
if (isMatchedAt > -1 && isMatchedAt === hostname.length - noProxyItem.length) { | ||
return null | ||
@@ -1433,4 +1434,8 @@ } | ||
if (chunked) { | ||
self.setHeader('transfer-encoding', 'chunked') | ||
} | ||
var headerName = self.hasHeader('content-type') | ||
if (!headerName || headerName.indexOf('multipart') === -1) { | ||
if (!headerName || self.headers[headerName].indexOf('multipart') === -1) { | ||
self.setHeader('content-type', 'multipart/related; boundary=' + self.boundary) | ||
@@ -1437,0 +1442,0 @@ } else { |
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
145001
17
1817
+ Addedcaseless@0.8.0(transitive)
- Removedcaseless@0.7.0(transitive)
Updatedcaseless@~0.8.0