@typespec/ts-http-runtime 1.0.0-alpha.20231107.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
|
@@ -1954,7 +1954,7 @@ class HttpHeadersImpl {
|
|
|
1954
1954
|
* @param value - The value of the header to set.
|
|
1955
1955
|
*/
|
|
1956
1956
|
set(name, value) {
|
|
1957
|
-
this._headersMap.set(normalizeName(name), { name, value: String(value) });
|
|
1957
|
+
this._headersMap.set(normalizeName(name), { name, value: String(value).trim() });
|
|
1958
1958
|
}
|
|
1959
1959
|
/**
|
|
1960
1960
|
* Get the header value for the provided header name, or undefined if no header exists in this
|