@pristine-ts/common 0.0.187 → 0.0.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,7 +21,7 @@ class Request {
|
|
|
21
21
|
* @param value The value of the header.
|
|
22
22
|
*/
|
|
23
23
|
setHeader(name, value) {
|
|
24
|
-
this.headers[name] = value;
|
|
24
|
+
this.headers[name.toLowerCase()] = value;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* This method returns whether or not the header exists in the Request.
|
|
@@ -29,7 +29,7 @@ class Request {
|
|
|
29
29
|
* @param name The name of the header.
|
|
30
30
|
*/
|
|
31
31
|
hasHeader(name) {
|
|
32
|
-
return this.headers.hasOwnProperty(name);
|
|
32
|
+
return this.headers.hasOwnProperty(name.toLowerCase());
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* This method returns the header corresponding to the name or undefined if it doesn't exist.
|
|
@@ -37,7 +37,7 @@ class Request {
|
|
|
37
37
|
* @param name The name of the header.
|
|
38
38
|
*/
|
|
39
39
|
getHeader(name) {
|
|
40
|
-
return this.headers[name];
|
|
40
|
+
return this.headers[name.toLowerCase()];
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
exports.Request = Request;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/models/request.ts"],"names":[],"mappings":";;;AAKA,MAAa,OAAO;IA0BhB,YAAY,UAA+B,EAAE,GAAW;QAfxD;;WAEG;QACH,YAAO,GAA8B,EAAE,CAAC;QAExC;;WAEG;QACH,SAAI,GAAQ,EAAE,CAAC;QAQX,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,IAAY,EAAE,KAAa;QACjC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/models/request.ts"],"names":[],"mappings":";;;AAKA,MAAa,OAAO;IA0BhB,YAAY,UAA+B,EAAE,GAAW;QAfxD;;WAEG;QACH,YAAO,GAA8B,EAAE,CAAC;QAExC;;WAEG;QACH,SAAI,GAAQ,EAAE,CAAC;QAQX,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,IAAY,EAAE,KAAa;QACjC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG,KAAK,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,IAAY;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,IAAY;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC5C,CAAC;CACJ;AA1DD,0BA0DC"}
|
|
@@ -18,7 +18,7 @@ export class Request {
|
|
|
18
18
|
* @param value The value of the header.
|
|
19
19
|
*/
|
|
20
20
|
setHeader(name, value) {
|
|
21
|
-
this.headers[name] = value;
|
|
21
|
+
this.headers[name.toLowerCase()] = value;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* This method returns whether or not the header exists in the Request.
|
|
@@ -26,7 +26,7 @@ export class Request {
|
|
|
26
26
|
* @param name The name of the header.
|
|
27
27
|
*/
|
|
28
28
|
hasHeader(name) {
|
|
29
|
-
return this.headers.hasOwnProperty(name);
|
|
29
|
+
return this.headers.hasOwnProperty(name.toLowerCase());
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* This method returns the header corresponding to the name or undefined if it doesn't exist.
|
|
@@ -34,7 +34,7 @@ export class Request {
|
|
|
34
34
|
* @param name The name of the header.
|
|
35
35
|
*/
|
|
36
36
|
getHeader(name) {
|
|
37
|
-
return this.headers[name];
|
|
37
|
+
return this.headers[name.toLowerCase()];
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
//# sourceMappingURL=request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/models/request.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,OAAO;IA0BhB,YAAY,UAA+B,EAAE,GAAW;QAfxD;;WAEG;QACH,YAAO,GAA8B,EAAE,CAAC;QAExC;;WAEG;QACH,SAAI,GAAQ,EAAE,CAAC;QAQX,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,IAAY,EAAE,KAAa;QACjC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/models/request.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,OAAO;IA0BhB,YAAY,UAA+B,EAAE,GAAW;QAfxD;;WAEG;QACH,YAAO,GAA8B,EAAE,CAAC;QAExC;;WAEG;QACH,SAAI,GAAQ,EAAE,CAAC;QAQX,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,IAAY,EAAE,KAAa;QACjC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAG,KAAK,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,IAAY;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,IAAY;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;IAC5C,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.188",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/common.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/common.module.js",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"src/*.{js,ts}"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "d9eeadc798c023e887715ed55151f3a439eec442"
|
|
60
60
|
}
|