File tree 1 file changed +0
-10
lines changed
packages/credential-provider-http/src/fromHttp
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,6 @@ export function createGetRequest(url: URL): HttpRequest {
28
28
* @internal
29
29
*/
30
30
export async function getCredentials ( response : HttpResponse , logger ?: Logger ) : Promise < AwsCredentialIdentity > {
31
- const contentType = response ?. headers [ "content-type" ] ?? response ?. headers [ "Content-Type" ] ?? "" ;
32
-
33
- if ( ! contentType . includes ( "json" ) ) {
34
- const warn : ( warning : string ) => void =
35
- logger ?. constructor ?. name === "NoOpLogger" || ! logger ? console . warn : logger . warn ;
36
- warn (
37
- "HTTP credential provider response header content-type was not application/json. Observed: " + contentType + "."
38
- ) ;
39
- }
40
-
41
31
const stream = sdkStreamMixin ( response . body ) ;
42
32
const str = await stream . transformToString ( ) ;
43
33
You can’t perform that action at this time.
0 commit comments