diff --git a/packages/credential-provider-http/src/fromHttp/requestHelpers.ts b/packages/credential-provider-http/src/fromHttp/requestHelpers.ts index 9fb0c0afb35d..5a9d032ad0ac 100644 --- a/packages/credential-provider-http/src/fromHttp/requestHelpers.ts +++ b/packages/credential-provider-http/src/fromHttp/requestHelpers.ts @@ -28,16 +28,6 @@ export function createGetRequest(url: URL): HttpRequest { * @internal */ export async function getCredentials(response: HttpResponse, logger?: Logger): Promise { - const contentType = response?.headers["content-type"] ?? response?.headers["Content-Type"] ?? ""; - - if (!contentType.includes("json")) { - const warn: (warning: string) => void = - logger?.constructor?.name === "NoOpLogger" || !logger ? console.warn : logger.warn; - warn( - "HTTP credential provider response header content-type was not application/json. Observed: " + contentType + "." - ); - } - const stream = sdkStreamMixin(response.body); const str = await stream.transformToString();