Comparing version 2.6.5 to 2.7.0
@@ -0,1 +1,8 @@ | ||
### 2.7.0 | ||
* support `keepAlive: true` option - **[@dbushong](https://github.com/dbushong)** [#82](https://github.com/groupon/gofer/pull/82) | ||
- [`2e50961`](https://github.com/groupon/gofer/commit/2e5096184d3634746b181e30ca0b3678402bdb05) **feat:** support `keepAlive: true` option | ||
- [`b0278f9`](https://github.com/groupon/gofer/commit/b0278f96a26611f871c9e9a72e371ec83f8660a5) **chore:** clean-up travis build targets | ||
### 2.6.5 | ||
@@ -2,0 +9,0 @@ |
@@ -125,3 +125,4 @@ | ||
options.method = options.method != null ? options.method.toUpperCase() : 'GET'; | ||
hubHeaders = generateHeaders(options.requestId, fetchId); | ||
options.forever = options.keepAlive; | ||
hubHeaders = generateHeaders(options.requestId, fetchId, options.keepAlive); | ||
extend(options.headers, hubHeaders); | ||
@@ -325,8 +326,10 @@ options.headers = mapValues(options.headers, removeInvalidHeaderChars); | ||
generateHeaders = function(requestId, fetchId) { | ||
generateHeaders = function(requestId, fetchId, keepAlive) { | ||
var headers; | ||
headers = { | ||
'Connection': 'close', | ||
'X-Fetch-ID': fetchId | ||
}; | ||
if (!keepAlive) { | ||
headers.Connection = 'close'; | ||
} | ||
if (requestId != null) { | ||
@@ -333,0 +336,0 @@ headers['X-Request-ID'] = requestId; |
{ | ||
"name": "gofer", | ||
"version": "2.6.5", | ||
"version": "2.7.0", | ||
"description": "A general purpose service client library for node.js", | ||
@@ -5,0 +5,0 @@ "license": "BSD-3-Clause", |
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
54830
994