@smithy/middleware-compression
Advanced tools
Comparing version 3.0.10 to 3.0.11
@@ -121,9 +121,9 @@ var __defProp = Object.defineProperty; | ||
if (isRequestCompressed) { | ||
if (headers["Content-Encoding"]) { | ||
if (headers["content-encoding"]) { | ||
updatedHeaders = { | ||
...headers, | ||
"Content-Encoding": `${headers["Content-Encoding"]},${algorithm}` | ||
"content-encoding": `${headers["content-encoding"]},${algorithm}` | ||
}; | ||
} else { | ||
updatedHeaders = { ...headers, "Content-Encoding": algorithm }; | ||
updatedHeaders = { ...headers, "content-encoding": algorithm }; | ||
} | ||
@@ -130,0 +130,0 @@ break; |
@@ -40,10 +40,10 @@ import { HttpRequest } from "@smithy/protocol-http"; | ||
if (isRequestCompressed) { | ||
if (headers["Content-Encoding"]) { | ||
if (headers["content-encoding"]) { | ||
updatedHeaders = { | ||
...headers, | ||
"Content-Encoding": `${headers["Content-Encoding"]},${algorithm}`, | ||
"content-encoding": `${headers["content-encoding"]},${algorithm}`, | ||
}; | ||
} | ||
else { | ||
updatedHeaders = { ...headers, "Content-Encoding": algorithm }; | ||
updatedHeaders = { ...headers, "content-encoding": algorithm }; | ||
} | ||
@@ -50,0 +50,0 @@ break; |
{ | ||
"name": "@smithy/middleware-compression", | ||
"version": "3.0.10", | ||
"version": "3.0.11", | ||
"description": "Middleware and Plugin for request compression.", | ||
@@ -19,7 +19,7 @@ "scripts": { | ||
"@smithy/is-array-buffer": "^3.0.0", | ||
"@smithy/node-config-provider": "^3.1.7", | ||
"@smithy/protocol-http": "^4.1.3", | ||
"@smithy/types": "^3.4.2", | ||
"@smithy/node-config-provider": "^3.1.8", | ||
"@smithy/protocol-http": "^4.1.4", | ||
"@smithy/types": "^3.5.0", | ||
"@smithy/util-config-provider": "^3.0.0", | ||
"@smithy/util-middleware": "^3.0.6", | ||
"@smithy/util-middleware": "^3.0.7", | ||
"@smithy/util-utf8": "^3.0.0", | ||
@@ -26,0 +26,0 @@ "fflate": "0.8.1", |
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