@typespec/ts-http-runtime 1.0.0-alpha.20231103.1 → 1.0.0-alpha.20231110.2
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.
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var os = require('os');
|
|
4
6
|
var util = require('util');
|
|
5
7
|
var FormData = require('form-data');
|
|
@@ -1952,7 +1954,7 @@ class HttpHeadersImpl {
|
|
|
1952
1954
|
* @param value - The value of the header to set.
|
|
1953
1955
|
*/
|
|
1954
1956
|
set(name, value) {
|
|
1955
|
-
this._headersMap.set(normalizeName(name), { name, value: String(value) });
|
|
1957
|
+
this._headersMap.set(normalizeName(name), { name, value: String(value).trim() });
|
|
1956
1958
|
}
|
|
1957
1959
|
/**
|
|
1958
1960
|
* Get the header value for the provided header name, or undefined if no header exists in this
|