diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java index dad49a7dea5c0..04aa079e151d1 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsProtocolUtils.java @@ -399,12 +399,6 @@ private static boolean filterMalformedRequestTests( || testCase.getId().equals("RestJsonWithBodyExpectsApplicationJsonContentTypeNoHeaders")) { return true; } - - // ToDo: https://github.com/aws/aws-sdk-js-v3/issues/6907 - if (testCase.getId().equals("RestJsonWithoutBodyEmptyInputExpectsEmptyContentType")) { - return true; - } - return false; } } diff --git a/private/aws-restjson-server/src/protocols/Aws_restJson1.ts b/private/aws-restjson-server/src/protocols/Aws_restJson1.ts index ce079df7d7d9a..96aba63901236 100644 --- a/private/aws-restjson-server/src/protocols/Aws_restJson1.ts +++ b/private/aws-restjson-server/src/protocols/Aws_restJson1.ts @@ -2053,7 +2053,7 @@ export const deserializeMalformedContentTypeWithoutBodyEmptyInputRequest = async ); if (contentTypeHeaderKey != null) { const contentType = output.headers[contentTypeHeaderKey]; - if (contentType !== undefined && contentType !== "application/json") { + if (contentType !== undefined) { throw new __UnsupportedMediaTypeException(); } }