superagent
Advanced tools
Comparing version 5.0.9 to 5.1.0
@@ -46,4 +46,2 @@ "use strict"; | ||
var pkg = require('../../package.json'); | ||
var RequestBase = require('../request-base'); | ||
@@ -151,10 +149,5 @@ | ||
function _initHeaders(req) { | ||
var ua = "node-superagent/".concat(pkg.version); | ||
req._header = { | ||
// coerces header names to lowercase | ||
'user-agent': ua | ||
req._header = {// coerces header names to lowercase | ||
}; | ||
req.header = { | ||
// preserves header name case | ||
'User-Agent': ua | ||
req.header = {// preserves header name case | ||
}; | ||
@@ -161,0 +154,0 @@ } |
{ | ||
"name": "superagent", | ||
"description": "elegant & feature rich browser / node HTTP with a fluent API", | ||
"version": "5.0.9", | ||
"version": "5.1.0", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "browser": { |
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
424256
5191