File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
private/aws-restjson-server/src/protocols Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -838,7 +838,7 @@ export const deserializeEmptyInputAndEmptyOutputRequest = async (
838838 ) ;
839839 if ( contentTypeHeaderKey != null ) {
840840 const contentType = output . headers [ contentTypeHeaderKey ] ;
841- if ( contentType !== undefined && contentType !== "application/json" ) {
841+ if ( contentType !== undefined ) {
842842 throw new __UnsupportedMediaTypeException ( ) ;
843843 }
844844 }
@@ -1182,7 +1182,7 @@ export const deserializeHttpPrefixHeadersInResponseRequest = async (
11821182 ) ;
11831183 if ( contentTypeHeaderKey != null ) {
11841184 const contentType = output . headers [ contentTypeHeaderKey ] ;
1185- if ( contentType !== undefined && contentType !== "application/json" ) {
1185+ if ( contentType !== undefined ) {
11861186 throw new __UnsupportedMediaTypeException ( ) ;
11871187 }
11881188 }
@@ -3486,7 +3486,7 @@ export const deserializeResponseCodeHttpFallbackRequest = async (
34863486 ) ;
34873487 if ( contentTypeHeaderKey != null ) {
34883488 const contentType = output . headers [ contentTypeHeaderKey ] ;
3489- if ( contentType !== undefined && contentType !== "application/json" ) {
3489+ if ( contentType !== undefined ) {
34903490 throw new __UnsupportedMediaTypeException ( ) ;
34913491 }
34923492 }
You can’t perform that action at this time.
0 commit comments