@aws-sdk/middleware-host-header
Advanced tools
Comparing version 3.272.0 to 3.278.0
@@ -19,3 +19,6 @@ "use strict"; | ||
else if (!request.headers["host"]) { | ||
request.headers["host"] = request.hostname; | ||
let host = request.hostname; | ||
if (request.port != null) | ||
host += `:${request.port}`; | ||
request.headers["host"] = host; | ||
} | ||
@@ -22,0 +25,0 @@ return next(args); |
@@ -15,3 +15,6 @@ import { HttpRequest } from "@aws-sdk/protocol-http"; | ||
else if (!request.headers["host"]) { | ||
request.headers["host"] = request.hostname; | ||
let host = request.hostname; | ||
if (request.port != null) | ||
host += `:${request.port}`; | ||
request.headers["host"] = host; | ||
} | ||
@@ -18,0 +21,0 @@ return next(args); |
{ | ||
"name": "@aws-sdk/middleware-host-header", | ||
"version": "3.272.0", | ||
"version": "3.278.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", |
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
17671
118