You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/protocols/aws-json-protocol/src/main/java/software/amazon/awssdk/protocols/json/DefaultJsonContentTypeResolver.java
Copy file name to clipboardExpand all lines: core/protocols/aws-json-protocol/src/main/java/software/amazon/awssdk/protocols/json/StructuredJsonGenerator.java
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,6 @@ public interface StructuredJsonGenerator {
Copy file name to clipboardExpand all lines: core/protocols/aws-json-protocol/src/main/java/software/amazon/awssdk/protocols/json/internal/marshall/JsonProtocolMarshaller.java
Copy file name to clipboardExpand all lines: services/dynamodb/src/test/java/software/amazon/awssdk/services/dynamodb/PutItemRequestMarshallerTest.java
Copy file name to clipboardExpand all lines: test/protocol-tests-core/src/main/resources/software/amazon/awssdk/protocol/suites/cases/rest-core-input.json
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -469,6 +469,24 @@
469
469
}
470
470
}
471
471
},
472
+
{
473
+
"description": "GET operation does not have content-type header",
Copy file name to clipboardExpand all lines: test/protocol-tests-core/src/main/resources/software/amazon/awssdk/protocol/suites/cases/rest-json-input.json
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,22 @@
37
37
}
38
38
}
39
39
},
40
+
{
41
+
"description": "Content type header is set to application/json for a POST request",
42
+
"when": {
43
+
"action": "marshall",
44
+
"operation": "AllTypes"
45
+
},
46
+
"then": {
47
+
"serializedAs": {
48
+
"headers": {
49
+
"contains": {
50
+
"content-type": "application/json"
51
+
}
52
+
}
53
+
}
54
+
}
55
+
},
40
56
{
41
57
"description": "Operation with structure member explicitly marked as the payload is serialized as unwrapped JSON",
0 commit comments