Skip to content

Commit 2fc30bc

Browse files
authored
Fix restJson1 malformed length test (#2600)
[RestJsonWithoutBodyEmptyInputExpectsEmptyContentType](https://github.com/smithy-lang/smithy/blob/e44fd7f91c916c8adfa55ddbef2a1bfe59573989/smithy-aws-protocol-tests/model/restJson1/malformedRequests/malformed-content-type.smithy#L131) says that when there's no request body input binding, content-type should be omitted. The test this commit fixes, RestJsonMalformedLengthQueryStringNoValue, is on an operation with no request body input binding, but was specifying content-type, conflicting with the former test.
1 parent e44fd7f commit 2fc30bc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

smithy-aws-protocol-tests/model/restJson1/validation/malformed-length.smithy

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,6 @@ apply MalformedLengthQueryString @httpMalformedRequestTests([
567567
queryParams: [
568568
"string"
569569
],
570-
headers: {
571-
"content-type": "application/json"
572-
},
573570
},
574571
response: {
575572
code: 400,

0 commit comments

Comments
 (0)