Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,7 @@ export const deserializeMalformedContentTypeWithoutBodyEmptyInputRequest = async
);
if (contentTypeHeaderKey != null) {
const contentType = output.headers[contentTypeHeaderKey];
if (contentType !== undefined && contentType !== "application/json") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (contentType !== undefined) {
throw new __UnsupportedMediaTypeException();
}
}
Expand Down
Loading