Skip to content

Commit 95be123

Browse files
Fix content types
1 parent 291ce76 commit 95be123

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

smithy-aws-protocol-tests/model/awsJson1_0/query-compatible.smithy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ apply QueryCompatibleOperation @httpRequestTests([
3737
documentation: "Clients for query-compatible services MUST send the x-amzn-query-mode header."
3838
protocol: awsJson1_0
3939
method: "POST"
40-
headers: { "Content-Type": "application/json", "x-amzn-query-mode": "true", "X-Amz-Target": "QueryCompatibleJsonRpc10.QueryIncompatibleOperation" }
40+
headers: { "Content-Type": "application/x-amz-json-1.0", "x-amzn-query-mode": "true", "X-Amz-Target": "QueryCompatibleJsonRpc10.QueryIncompatibleOperation" }
4141
uri: "/"
4242
body: "{}"
4343
bodyMediaType: "application/json"
@@ -56,7 +56,7 @@ apply NoCustomCodeError @httpResponseTests([
5656
protocol: awsJson1_0
5757
params: { message: "Hi" }
5858
code: 400
59-
headers: { "Content-Type": "application/json" }
59+
headers: { "Content-Type": "application/x-amz-json-1.0" }
6060
body: """
6161
{
6262
"__type": "aws.protocoltests.json10#NoCustomCodeError",
@@ -81,7 +81,7 @@ apply CustomCodeError @httpResponseTests([
8181
protocol: awsJson1_0
8282
params: { message: "Hi" }
8383
code: 400
84-
headers: { "Content-Type": "application/json", "x-amzn-query-error": "Customized;Sender" }
84+
headers: { "Content-Type": "application/x-amz-json-1.0", "x-amzn-query-error": "Customized;Sender" }
8585
body: """
8686
{
8787
"__type": "aws.protocoltests.json10#CustomCodeError",

0 commit comments

Comments
 (0)