@citizenfx/http-wrapper
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -107,3 +107,3 @@ const flatMap = require('array.prototype.flatmap'); | ||
getHeader(name) { | ||
return this.headers[name]; | ||
return this.headers[name.toLowerCase()]; | ||
} | ||
@@ -121,11 +121,11 @@ | ||
hasHeader(name) { | ||
return (this.headers[name] !== undefined); | ||
return (this.headers[name.toLowerCase()] !== undefined); | ||
} | ||
removeHeader(name) { | ||
delete this.headers[name]; | ||
delete this.headers[name.toLowerCase()]; | ||
} | ||
setHeader(name, value) { | ||
this.headers[name] = value; | ||
this.headers[name.toLowerCase()] = value; | ||
} | ||
@@ -132,0 +132,0 @@ |
{ | ||
"name": "@citizenfx/http-wrapper", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A HTTP wrapper for CitizenFX SetHttpHandler.", | ||
@@ -5,0 +5,0 @@ "main": "index.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
6342