|
2 | 2 | import { loadRestXmlErrorCode, parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core"; |
3 | 3 | import { XmlNode as __XmlNode, XmlText as __XmlText } from "@aws-sdk/xml-builder"; |
4 | 4 | import { requestBuilder as rb } from "@smithy/core"; |
5 | | -import { |
6 | | - HttpRequest as __HttpRequest, |
7 | | - HttpResponse as __HttpResponse, |
8 | | - isValidHostname as __isValidHostname, |
9 | | -} from "@smithy/protocol-http"; |
| 5 | +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; |
10 | 6 | import { |
11 | 7 | collectBody, |
12 | 8 | dateToUtcString as __dateToUtcString, |
@@ -3215,18 +3211,6 @@ export const se_WriteGetObjectResponseCommand = async ( |
3215 | 3211 | contents = input.Body; |
3216 | 3212 | body = contents; |
3217 | 3213 | } |
3218 | | - let { hostname: resolvedHostname } = await context.endpoint(); |
3219 | | - if (context.disableHostPrefix !== true) { |
3220 | | - resolvedHostname = "{RequestRoute}." + resolvedHostname; |
3221 | | - if (input.RequestRoute === undefined) { |
3222 | | - throw new Error("Empty value provided for input host prefix: RequestRoute."); |
3223 | | - } |
3224 | | - resolvedHostname = resolvedHostname.replace("{RequestRoute}", input.RequestRoute!); |
3225 | | - if (!__isValidHostname(resolvedHostname)) { |
3226 | | - throw new Error("ValidationError: prefixed hostname must be hostname compatible."); |
3227 | | - } |
3228 | | - } |
3229 | | - b.hn(resolvedHostname); |
3230 | 3214 | b.m("POST").h(headers).b(body); |
3231 | 3215 | return b.build(); |
3232 | 3216 | }; |
|
0 commit comments