Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96efe22

Browse files
committed
Replacing custom json content types by default
1 parent 61deae3 commit 96efe22

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

aws-cpp-sdk-core/include/aws/core/AmazonSerializableWebServiceRequest.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
namespace Aws
1616
{
1717
static const char JSON_CONTENT_TYPE[] = "application/json";
18-
static const char AMZN_JSON_CONTENT_TYPE_1_0[] = "application/x-amz-json-1.0";
19-
static const char AMZN_JSON_CONTENT_TYPE_1_1[] = "application/x-amz-json-1.1";
2018
static const char FORM_CONTENT_TYPE[] = "application/x-www-form-urlencoded";
2119
static const char AMZN_XML_CONTENT_TYPE[] = "application/xml";
2220
static const char AMZN_EVENTSTREAM_CONTENT_TYPE[] = "application/vnd.amazon.eventstream";
@@ -33,8 +31,6 @@ namespace Aws
3331
//prevent unreferenced var warnings
3432
//for these values.
3533
AWS_UNREFERENCED_PARAM(JSON_CONTENT_TYPE);
36-
AWS_UNREFERENCED_PARAM(AMZN_JSON_CONTENT_TYPE_1_0);
37-
AWS_UNREFERENCED_PARAM(AMZN_JSON_CONTENT_TYPE_1_1);
3834
AWS_UNREFERENCED_PARAM(FORM_CONTENT_TYPE);
3935
AWS_UNREFERENCED_PARAM(AMZN_XML_CONTENT_TYPE);
4036
}

code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/domainmodels/codegeneration/cpp/CppViewHelper.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ public class CppViewHelper {
6767
CORAL_TYPE_TO_DEFAULT_VALUES.put("double", "0.0");
6868
CORAL_TYPE_TO_DEFAULT_VALUES.put("float", "0.0");
6969

70-
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("json", "Aws::AMZN_JSON_CONTENT_TYPE_1_1");
71-
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("json1.0", "Aws::AMZN_JSON_CONTENT_TYPE_1_0");
72-
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("json1.1", "Aws::AMZN_JSON_CONTENT_TYPE_1_1");
73-
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("rest-json", "Aws::AMZN_JSON_CONTENT_TYPE_1_1");
74-
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("rest-json1.0", "Aws::AMZN_JSON_CONTENT_TYPE_1_0");
75-
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("rest-json1.1", "Aws::AMZN_JSON_CONTENT_TYPE_1_1");
70+
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("json", "Aws::JSON_CONTENT_TYPE");
71+
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("json1.0", "Aws::JSON_CONTENT_TYPE");
72+
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("json1.1", "Aws::JSON_CONTENT_TYPE");
73+
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("rest-json", "Aws::JSON_CONTENT_TYPE");
74+
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("rest-json1.0", "Aws::JSON_CONTENT_TYPE");
75+
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("rest-json1.1", "Aws::JSON_CONTENT_TYPE");
7676
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("rest-xml", "Aws::AMZN_XML_CONTENT_TYPE");
7777
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("query", "Aws::FORM_CONTENT_TYPE");
7878
CORAL_PROTOCOL_TO_CONTENT_TYPE_MAPPING.put("ec2", "Aws::FORM_CONTENT_TYPE");

0 commit comments

Comments
 (0)