diff --git a/src/CodeGenerator/src/Generator/InputGenerator.php b/src/CodeGenerator/src/Generator/InputGenerator.php index 4e21f1105b..4cf37eee8d 100644 --- a/src/CodeGenerator/src/Generator/InputGenerator.php +++ b/src/CodeGenerator/src/Generator/InputGenerator.php @@ -389,9 +389,9 @@ private function inputClassRequestGetters(StructureShape $inputShape, ClassBuild $serializer = $this->serializer->get($operation->getService()); if ((null !== $payloadProperty = $inputShape->getPayload()) && $inputShape->getMember($payloadProperty)->isStreaming()) { - $body['header'] = '$headers = [];' . "\n"; + $body['header'] = '$headers = ' . $serializer->getHeaders($operation, false) . ';' . "\n"; } else { - $body['header'] = '$headers = ' . $serializer->getHeaders($operation) . ';' . "\n"; + $body['header'] = '$headers = ' . $serializer->getHeaders($operation, true) . ';' . "\n"; } $body['querystring'] = '$query = [];' . "\n"; diff --git a/src/CodeGenerator/src/Generator/RequestSerializer/JsonRpcSerializer.php b/src/CodeGenerator/src/Generator/RequestSerializer/JsonRpcSerializer.php index 810b2cd9ae..58251e6f9c 100644 --- a/src/CodeGenerator/src/Generator/RequestSerializer/JsonRpcSerializer.php +++ b/src/CodeGenerator/src/Generator/RequestSerializer/JsonRpcSerializer.php @@ -15,18 +15,19 @@ */ class JsonRpcSerializer extends RestJsonSerializer { - public function getHeaders(Operation $operation): string + public function getHeaders(Operation $operation, bool $withPayload): string { - return strtr(<< 'application/x-amz-json-VERSION', - 'X-Amz-Target' => 'TARGET', -]; + if (!$withPayload) { + return "['Accept' => 'application/json']"; + } -PHP - , [ - 'VERSION' => number_format($operation->getService()->getJsonVersion(), 1), - 'TARGET' => sprintf('%s.%s', $operation->getService()->getTargetPrefix(), $operation->getName()), - ]); + return strtr("[ + 'Content-Type' => 'application/x-amz-json-VERSION', + 'X-Amz-Target' => 'TARGET', + 'Accept' => 'application/json', + ]", [ + 'VERSION' => number_format($operation->getService()->getJsonVersion(), 1), + 'TARGET' => sprintf('%s.%s', $operation->getService()->getTargetPrefix(), $operation->getName()), + ]); } } diff --git a/src/CodeGenerator/src/Generator/RequestSerializer/QuerySerializer.php b/src/CodeGenerator/src/Generator/RequestSerializer/QuerySerializer.php index e2f4c47f11..2fd6e4a674 100644 --- a/src/CodeGenerator/src/Generator/RequestSerializer/QuerySerializer.php +++ b/src/CodeGenerator/src/Generator/RequestSerializer/QuerySerializer.php @@ -43,9 +43,13 @@ public function __construct(NamespaceRegistry $namespaceRegistry, RequirementsRe $this->requirementsRegistry = $requirementsRegistry; } - public function getHeaders(Operation $operation): string + public function getHeaders(Operation $operation, bool $withPayload): string { - return '["content-type" => "application/x-www-form-urlencoded"]'; + if (!$withPayload) { + return '[]'; + } + + return "['content-type' => 'application/x-www-form-urlencoded']"; } public function generateRequestBody(Operation $operation, StructureShape $shape): SerializerResultBody diff --git a/src/CodeGenerator/src/Generator/RequestSerializer/RestJsonSerializer.php b/src/CodeGenerator/src/Generator/RequestSerializer/RestJsonSerializer.php index c90ec532c5..63e1c24a71 100644 --- a/src/CodeGenerator/src/Generator/RequestSerializer/RestJsonSerializer.php +++ b/src/CodeGenerator/src/Generator/RequestSerializer/RestJsonSerializer.php @@ -43,9 +43,16 @@ public function __construct(NamespaceRegistry $namespaceRegistry, RequirementsRe $this->requirementsRegistry = $requirementsRegistry; } - public function getHeaders(Operation $operation): string + public function getHeaders(Operation $operation, bool $withPayload): string { - return '["content-type" => "application/json"]'; + if (!$withPayload) { + return "['Accept' => 'application/json']"; + } + + return "[ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]"; } public function generateRequestBody(Operation $operation, StructureShape $shape): SerializerResultBody diff --git a/src/CodeGenerator/src/Generator/RequestSerializer/RestXmlSerializer.php b/src/CodeGenerator/src/Generator/RequestSerializer/RestXmlSerializer.php index 3f567bcc15..cbee2402f8 100644 --- a/src/CodeGenerator/src/Generator/RequestSerializer/RestXmlSerializer.php +++ b/src/CodeGenerator/src/Generator/RequestSerializer/RestXmlSerializer.php @@ -40,9 +40,13 @@ public function __construct(NamespaceRegistry $namespaceRegistry, RequirementsRe $this->requirementsRegistry = $requirementsRegistry; } - public function getHeaders(Operation $operation): string + public function getHeaders(Operation $operation, bool $withPayload): string { - return '["content-type" => "application/xml"]'; + if (!$withPayload) { + return '[]'; + } + + return "['content-type' => 'application/xml']"; } public function generateRequestBody(Operation $operation, StructureShape $shape): SerializerResultBody diff --git a/src/CodeGenerator/src/Generator/RequestSerializer/Serializer.php b/src/CodeGenerator/src/Generator/RequestSerializer/Serializer.php index dc9e9cc552..784ff84ab4 100644 --- a/src/CodeGenerator/src/Generator/RequestSerializer/Serializer.php +++ b/src/CodeGenerator/src/Generator/RequestSerializer/Serializer.php @@ -27,5 +27,5 @@ public function generateRequestBody(Operation $operation, StructureShape $shape) */ public function generateRequestBuilder(StructureShape $shape, bool $needsChecks): SerializerResultBuilder; - public function getHeaders(Operation $operation): string; + public function getHeaders(Operation $operation, bool $withPayload): string; } diff --git a/src/Service/AppSync/CHANGELOG.md b/src/Service/AppSync/CHANGELOG.md index cee4d11485..bb709b7b3f 100644 --- a/src/Service/AppSync/CHANGELOG.md +++ b/src/Service/AppSync/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 2.1.0 ### Added diff --git a/src/Service/AppSync/src/Input/CreateResolverRequest.php b/src/Service/AppSync/src/Input/CreateResolverRequest.php index 2ab25f202e..cbc847f927 100644 --- a/src/Service/AppSync/src/Input/CreateResolverRequest.php +++ b/src/Service/AppSync/src/Input/CreateResolverRequest.php @@ -278,7 +278,10 @@ public function getTypeName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/AppSync/src/Input/DeleteResolverRequest.php b/src/Service/AppSync/src/Input/DeleteResolverRequest.php index d1204a2a84..06bafa087f 100644 --- a/src/Service/AppSync/src/Input/DeleteResolverRequest.php +++ b/src/Service/AppSync/src/Input/DeleteResolverRequest.php @@ -86,7 +86,10 @@ public function getTypeName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/AppSync/src/Input/GetSchemaCreationStatusRequest.php b/src/Service/AppSync/src/Input/GetSchemaCreationStatusRequest.php index aa15708814..fee227fd40 100644 --- a/src/Service/AppSync/src/Input/GetSchemaCreationStatusRequest.php +++ b/src/Service/AppSync/src/Input/GetSchemaCreationStatusRequest.php @@ -52,7 +52,10 @@ public function getApiId(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/AppSync/src/Input/ListApiKeysRequest.php b/src/Service/AppSync/src/Input/ListApiKeysRequest.php index ac7095f9c4..4679ee0676 100644 --- a/src/Service/AppSync/src/Input/ListApiKeysRequest.php +++ b/src/Service/AppSync/src/Input/ListApiKeysRequest.php @@ -83,7 +83,10 @@ public function getNextToken(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/AppSync/src/Input/ListResolversRequest.php b/src/Service/AppSync/src/Input/ListResolversRequest.php index 4d48d6953f..5ebc7f8222 100644 --- a/src/Service/AppSync/src/Input/ListResolversRequest.php +++ b/src/Service/AppSync/src/Input/ListResolversRequest.php @@ -100,7 +100,10 @@ public function getTypeName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/AppSync/src/Input/StartSchemaCreationRequest.php b/src/Service/AppSync/src/Input/StartSchemaCreationRequest.php index 29f59d408d..dd77a2c6e8 100644 --- a/src/Service/AppSync/src/Input/StartSchemaCreationRequest.php +++ b/src/Service/AppSync/src/Input/StartSchemaCreationRequest.php @@ -69,7 +69,10 @@ public function getDefinition(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/AppSync/src/Input/UpdateApiKeyRequest.php b/src/Service/AppSync/src/Input/UpdateApiKeyRequest.php index 565744375d..ed9b48e94f 100644 --- a/src/Service/AppSync/src/Input/UpdateApiKeyRequest.php +++ b/src/Service/AppSync/src/Input/UpdateApiKeyRequest.php @@ -100,7 +100,10 @@ public function getId(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/AppSync/src/Input/UpdateDataSourceRequest.php b/src/Service/AppSync/src/Input/UpdateDataSourceRequest.php index 744e347736..270e59dc3f 100644 --- a/src/Service/AppSync/src/Input/UpdateDataSourceRequest.php +++ b/src/Service/AppSync/src/Input/UpdateDataSourceRequest.php @@ -259,7 +259,10 @@ public function getType(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/AppSync/src/Input/UpdateResolverRequest.php b/src/Service/AppSync/src/Input/UpdateResolverRequest.php index 2ec6d2bbb8..798eadc1fa 100644 --- a/src/Service/AppSync/src/Input/UpdateResolverRequest.php +++ b/src/Service/AppSync/src/Input/UpdateResolverRequest.php @@ -278,7 +278,10 @@ public function getTypeName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Athena/CHANGELOG.md b/src/Service/Athena/CHANGELOG.md index d9dc6e0dcb..bdfbe4ae89 100644 --- a/src/Service/Athena/CHANGELOG.md +++ b/src/Service/Athena/CHANGELOG.md @@ -4,6 +4,7 @@ ### Changed +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers - AWS enhancement: Documentation updates. ## 2.2.0 diff --git a/src/Service/Athena/src/Input/GetCalculationExecutionRequest.php b/src/Service/Athena/src/Input/GetCalculationExecutionRequest.php index 3c464664de..8ce0e26721 100644 --- a/src/Service/Athena/src/Input/GetCalculationExecutionRequest.php +++ b/src/Service/Athena/src/Input/GetCalculationExecutionRequest.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetCalculationExecution', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/GetCalculationExecutionStatusRequest.php b/src/Service/Athena/src/Input/GetCalculationExecutionStatusRequest.php index 4208e0439d..17151de0a0 100644 --- a/src/Service/Athena/src/Input/GetCalculationExecutionStatusRequest.php +++ b/src/Service/Athena/src/Input/GetCalculationExecutionStatusRequest.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetCalculationExecutionStatus', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/GetDataCatalogInput.php b/src/Service/Athena/src/Input/GetDataCatalogInput.php index 2b7f1d3608..2a497d0147 100644 --- a/src/Service/Athena/src/Input/GetDataCatalogInput.php +++ b/src/Service/Athena/src/Input/GetDataCatalogInput.php @@ -70,6 +70,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetDataCatalog', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/GetDatabaseInput.php b/src/Service/Athena/src/Input/GetDatabaseInput.php index 1b9bc27752..603bbfd014 100644 --- a/src/Service/Athena/src/Input/GetDatabaseInput.php +++ b/src/Service/Athena/src/Input/GetDatabaseInput.php @@ -88,6 +88,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetDatabase', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/GetNamedQueryInput.php b/src/Service/Athena/src/Input/GetNamedQueryInput.php index 1e6b5fa2b8..b8a3521c6a 100644 --- a/src/Service/Athena/src/Input/GetNamedQueryInput.php +++ b/src/Service/Athena/src/Input/GetNamedQueryInput.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetNamedQuery', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/GetQueryExecutionInput.php b/src/Service/Athena/src/Input/GetQueryExecutionInput.php index a582243574..e441c69b39 100644 --- a/src/Service/Athena/src/Input/GetQueryExecutionInput.php +++ b/src/Service/Athena/src/Input/GetQueryExecutionInput.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetQueryExecution', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/GetQueryResultsInput.php b/src/Service/Athena/src/Input/GetQueryResultsInput.php index dfe7663f88..9dfb9044e2 100644 --- a/src/Service/Athena/src/Input/GetQueryResultsInput.php +++ b/src/Service/Athena/src/Input/GetQueryResultsInput.php @@ -87,6 +87,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetQueryResults', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/GetSessionRequest.php b/src/Service/Athena/src/Input/GetSessionRequest.php index da73c2db1b..e214d4518c 100644 --- a/src/Service/Athena/src/Input/GetSessionRequest.php +++ b/src/Service/Athena/src/Input/GetSessionRequest.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetSession', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/GetSessionStatusRequest.php b/src/Service/Athena/src/Input/GetSessionStatusRequest.php index 91d6a8cd2c..af053a1d41 100644 --- a/src/Service/Athena/src/Input/GetSessionStatusRequest.php +++ b/src/Service/Athena/src/Input/GetSessionStatusRequest.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetSessionStatus', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/GetTableMetadataInput.php b/src/Service/Athena/src/Input/GetTableMetadataInput.php index a1b3aea13c..ad7ad75485 100644 --- a/src/Service/Athena/src/Input/GetTableMetadataInput.php +++ b/src/Service/Athena/src/Input/GetTableMetadataInput.php @@ -105,6 +105,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetTableMetadata', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/GetWorkGroupInput.php b/src/Service/Athena/src/Input/GetWorkGroupInput.php index 5470c364b0..a93663d28e 100644 --- a/src/Service/Athena/src/Input/GetWorkGroupInput.php +++ b/src/Service/Athena/src/Input/GetWorkGroupInput.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.GetWorkGroup', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/ListDatabasesInput.php b/src/Service/Athena/src/Input/ListDatabasesInput.php index d1440e7be4..e63702cc08 100644 --- a/src/Service/Athena/src/Input/ListDatabasesInput.php +++ b/src/Service/Athena/src/Input/ListDatabasesInput.php @@ -103,6 +103,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.ListDatabases', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/ListNamedQueriesInput.php b/src/Service/Athena/src/Input/ListNamedQueriesInput.php index 4a2013e8c3..e0029f3f6e 100644 --- a/src/Service/Athena/src/Input/ListNamedQueriesInput.php +++ b/src/Service/Athena/src/Input/ListNamedQueriesInput.php @@ -85,6 +85,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.ListNamedQueries', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/ListQueryExecutionsInput.php b/src/Service/Athena/src/Input/ListQueryExecutionsInput.php index 84222e5472..58fccc15ca 100644 --- a/src/Service/Athena/src/Input/ListQueryExecutionsInput.php +++ b/src/Service/Athena/src/Input/ListQueryExecutionsInput.php @@ -85,6 +85,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.ListQueryExecutions', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/ListTableMetadataInput.php b/src/Service/Athena/src/Input/ListTableMetadataInput.php index 30bbc15c9b..28046d787f 100644 --- a/src/Service/Athena/src/Input/ListTableMetadataInput.php +++ b/src/Service/Athena/src/Input/ListTableMetadataInput.php @@ -134,6 +134,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.ListTableMetadata', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/StartCalculationExecutionRequest.php b/src/Service/Athena/src/Input/StartCalculationExecutionRequest.php index bff3592b5e..a1e67e407b 100644 --- a/src/Service/Athena/src/Input/StartCalculationExecutionRequest.php +++ b/src/Service/Athena/src/Input/StartCalculationExecutionRequest.php @@ -128,6 +128,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.StartCalculationExecution', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/StartQueryExecutionInput.php b/src/Service/Athena/src/Input/StartQueryExecutionInput.php index 1e4e7cf4a6..4c8d39d599 100644 --- a/src/Service/Athena/src/Input/StartQueryExecutionInput.php +++ b/src/Service/Athena/src/Input/StartQueryExecutionInput.php @@ -163,6 +163,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.StartQueryExecution', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/StartSessionRequest.php b/src/Service/Athena/src/Input/StartSessionRequest.php index 62d97e4c54..fa6e8c30f8 100644 --- a/src/Service/Athena/src/Input/StartSessionRequest.php +++ b/src/Service/Athena/src/Input/StartSessionRequest.php @@ -142,6 +142,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.StartSession', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/StopCalculationExecutionRequest.php b/src/Service/Athena/src/Input/StopCalculationExecutionRequest.php index 49ee75a097..d586ace29a 100644 --- a/src/Service/Athena/src/Input/StopCalculationExecutionRequest.php +++ b/src/Service/Athena/src/Input/StopCalculationExecutionRequest.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.StopCalculationExecution', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/StopQueryExecutionInput.php b/src/Service/Athena/src/Input/StopQueryExecutionInput.php index 441045efa9..bbf7c3cea5 100644 --- a/src/Service/Athena/src/Input/StopQueryExecutionInput.php +++ b/src/Service/Athena/src/Input/StopQueryExecutionInput.php @@ -54,6 +54,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.StopQueryExecution', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Athena/src/Input/TerminateSessionRequest.php b/src/Service/Athena/src/Input/TerminateSessionRequest.php index 3092d3ffb1..a5760a0305 100644 --- a/src/Service/Athena/src/Input/TerminateSessionRequest.php +++ b/src/Service/Athena/src/Input/TerminateSessionRequest.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonAthena.TerminateSession', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CloudWatchLogs/CHANGELOG.md b/src/Service/CloudWatchLogs/CHANGELOG.md index 23f29303ff..4195d0d96e 100644 --- a/src/Service/CloudWatchLogs/CHANGELOG.md +++ b/src/Service/CloudWatchLogs/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 2.2.0 ### Added diff --git a/src/Service/CloudWatchLogs/src/Input/CreateLogGroupRequest.php b/src/Service/CloudWatchLogs/src/Input/CreateLogGroupRequest.php index 7af8e13f1c..ae051982cd 100644 --- a/src/Service/CloudWatchLogs/src/Input/CreateLogGroupRequest.php +++ b/src/Service/CloudWatchLogs/src/Input/CreateLogGroupRequest.php @@ -130,6 +130,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Logs_20140328.CreateLogGroup', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CloudWatchLogs/src/Input/CreateLogStreamRequest.php b/src/Service/CloudWatchLogs/src/Input/CreateLogStreamRequest.php index 3eb4bcb160..b7667cdb08 100644 --- a/src/Service/CloudWatchLogs/src/Input/CreateLogStreamRequest.php +++ b/src/Service/CloudWatchLogs/src/Input/CreateLogStreamRequest.php @@ -72,6 +72,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Logs_20140328.CreateLogStream', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CloudWatchLogs/src/Input/DescribeLogStreamsRequest.php b/src/Service/CloudWatchLogs/src/Input/DescribeLogStreamsRequest.php index 68b453b9d8..f7a09d1ed0 100644 --- a/src/Service/CloudWatchLogs/src/Input/DescribeLogStreamsRequest.php +++ b/src/Service/CloudWatchLogs/src/Input/DescribeLogStreamsRequest.php @@ -163,6 +163,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Logs_20140328.DescribeLogStreams', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CloudWatchLogs/src/Input/FilterLogEventsRequest.php b/src/Service/CloudWatchLogs/src/Input/FilterLogEventsRequest.php index b6c1c16d25..141c101e47 100644 --- a/src/Service/CloudWatchLogs/src/Input/FilterLogEventsRequest.php +++ b/src/Service/CloudWatchLogs/src/Input/FilterLogEventsRequest.php @@ -235,6 +235,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Logs_20140328.FilterLogEvents', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CloudWatchLogs/src/Input/PutLogEventsRequest.php b/src/Service/CloudWatchLogs/src/Input/PutLogEventsRequest.php index d18420678c..6385000c34 100644 --- a/src/Service/CloudWatchLogs/src/Input/PutLogEventsRequest.php +++ b/src/Service/CloudWatchLogs/src/Input/PutLogEventsRequest.php @@ -112,6 +112,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Logs_20140328.PutLogEvents', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeBuild/CHANGELOG.md b/src/Service/CodeBuild/CHANGELOG.md index 4d38f520a1..cd3c861790 100644 --- a/src/Service/CodeBuild/CHANGELOG.md +++ b/src/Service/CodeBuild/CHANGELOG.md @@ -4,6 +4,7 @@ ### Changed +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers - AWS enhancement: Documentation updates. ## 2.4.0 diff --git a/src/Service/CodeBuild/src/Input/BatchGetBuildsInput.php b/src/Service/CodeBuild/src/Input/BatchGetBuildsInput.php index 00094deafd..71819881d6 100644 --- a/src/Service/CodeBuild/src/Input/BatchGetBuildsInput.php +++ b/src/Service/CodeBuild/src/Input/BatchGetBuildsInput.php @@ -58,6 +58,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeBuild_20161006.BatchGetBuilds', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeBuild/src/Input/StartBuildInput.php b/src/Service/CodeBuild/src/Input/StartBuildInput.php index e41d411831..49de10732c 100644 --- a/src/Service/CodeBuild/src/Input/StartBuildInput.php +++ b/src/Service/CodeBuild/src/Input/StartBuildInput.php @@ -644,6 +644,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeBuild_20161006.StartBuild', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeBuild/src/Input/StopBuildInput.php b/src/Service/CodeBuild/src/Input/StopBuildInput.php index 638b191c98..ca1b29df0b 100644 --- a/src/Service/CodeBuild/src/Input/StopBuildInput.php +++ b/src/Service/CodeBuild/src/Input/StopBuildInput.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeBuild_20161006.StopBuild', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeCommit/CHANGELOG.md b/src/Service/CodeCommit/CHANGELOG.md index 77777c3475..218c5d9b71 100644 --- a/src/Service/CodeCommit/CHANGELOG.md +++ b/src/Service/CodeCommit/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.1.1 ### Changed diff --git a/src/Service/CodeCommit/src/Input/CreateRepositoryInput.php b/src/Service/CodeCommit/src/Input/CreateRepositoryInput.php index 471b2c7837..299b10cbb5 100644 --- a/src/Service/CodeCommit/src/Input/CreateRepositoryInput.php +++ b/src/Service/CodeCommit/src/Input/CreateRepositoryInput.php @@ -124,6 +124,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeCommit_20150413.CreateRepository', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeCommit/src/Input/DeleteRepositoryInput.php b/src/Service/CodeCommit/src/Input/DeleteRepositoryInput.php index 4e6abc99a6..96a6acf394 100644 --- a/src/Service/CodeCommit/src/Input/DeleteRepositoryInput.php +++ b/src/Service/CodeCommit/src/Input/DeleteRepositoryInput.php @@ -58,6 +58,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeCommit_20150413.DeleteRepository', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeCommit/src/Input/GetBlobInput.php b/src/Service/CodeCommit/src/Input/GetBlobInput.php index 5c7a3bfc15..fdea85faeb 100644 --- a/src/Service/CodeCommit/src/Input/GetBlobInput.php +++ b/src/Service/CodeCommit/src/Input/GetBlobInput.php @@ -75,6 +75,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeCommit_20150413.GetBlob', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeCommit/src/Input/GetBranchInput.php b/src/Service/CodeCommit/src/Input/GetBranchInput.php index a946baeb1f..7a0f1e8c19 100644 --- a/src/Service/CodeCommit/src/Input/GetBranchInput.php +++ b/src/Service/CodeCommit/src/Input/GetBranchInput.php @@ -70,6 +70,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeCommit_20150413.GetBranch', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeCommit/src/Input/GetCommitInput.php b/src/Service/CodeCommit/src/Input/GetCommitInput.php index 54fb55b1c8..51fc6caa58 100644 --- a/src/Service/CodeCommit/src/Input/GetCommitInput.php +++ b/src/Service/CodeCommit/src/Input/GetCommitInput.php @@ -75,6 +75,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeCommit_20150413.GetCommit', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeCommit/src/Input/GetDifferencesInput.php b/src/Service/CodeCommit/src/Input/GetDifferencesInput.php index 2e5eea92c9..36001bdf61 100644 --- a/src/Service/CodeCommit/src/Input/GetDifferencesInput.php +++ b/src/Service/CodeCommit/src/Input/GetDifferencesInput.php @@ -152,6 +152,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeCommit_20150413.GetDifferences', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeCommit/src/Input/ListRepositoriesInput.php b/src/Service/CodeCommit/src/Input/ListRepositoriesInput.php index a03681c179..68815c01ac 100644 --- a/src/Service/CodeCommit/src/Input/ListRepositoriesInput.php +++ b/src/Service/CodeCommit/src/Input/ListRepositoriesInput.php @@ -96,6 +96,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeCommit_20150413.ListRepositories', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeCommit/src/Input/PutRepositoryTriggersInput.php b/src/Service/CodeCommit/src/Input/PutRepositoryTriggersInput.php index 68362e42ab..e81a616f16 100644 --- a/src/Service/CodeCommit/src/Input/PutRepositoryTriggersInput.php +++ b/src/Service/CodeCommit/src/Input/PutRepositoryTriggersInput.php @@ -79,6 +79,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeCommit_20150413.PutRepositoryTriggers', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeDeploy/CHANGELOG.md b/src/Service/CodeDeploy/CHANGELOG.md index 2cf9bb11a2..67fed0e9af 100644 --- a/src/Service/CodeDeploy/CHANGELOG.md +++ b/src/Service/CodeDeploy/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 2.1.1 ### Changed diff --git a/src/Service/CodeDeploy/src/Input/CreateDeploymentInput.php b/src/Service/CodeDeploy/src/Input/CreateDeploymentInput.php index 4611810dd3..dcafa9758d 100644 --- a/src/Service/CodeDeploy/src/Input/CreateDeploymentInput.php +++ b/src/Service/CodeDeploy/src/Input/CreateDeploymentInput.php @@ -254,6 +254,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeDeploy_20141006.CreateDeployment', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeDeploy/src/Input/GetDeploymentInput.php b/src/Service/CodeDeploy/src/Input/GetDeploymentInput.php index 6dc02d356a..b50dbeec70 100644 --- a/src/Service/CodeDeploy/src/Input/GetDeploymentInput.php +++ b/src/Service/CodeDeploy/src/Input/GetDeploymentInput.php @@ -58,6 +58,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeDeploy_20141006.GetDeployment', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CodeDeploy/src/Input/PutLifecycleEventHookExecutionStatusInput.php b/src/Service/CodeDeploy/src/Input/PutLifecycleEventHookExecutionStatusInput.php index e4f4fc69d5..1f7e099fb9 100644 --- a/src/Service/CodeDeploy/src/Input/PutLifecycleEventHookExecutionStatusInput.php +++ b/src/Service/CodeDeploy/src/Input/PutLifecycleEventHookExecutionStatusInput.php @@ -90,6 +90,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'CodeDeploy_20141006.PutLifecycleEventHookExecutionStatus', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/CHANGELOG.md b/src/Service/CognitoIdentityProvider/CHANGELOG.md index f7be9d59de..98b223f7fc 100644 --- a/src/Service/CognitoIdentityProvider/CHANGELOG.md +++ b/src/Service/CognitoIdentityProvider/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.8.0 ### Added diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminAddUserToGroupRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminAddUserToGroupRequest.php index d7a9296a43..012ce0c414 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminAddUserToGroupRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminAddUserToGroupRequest.php @@ -91,6 +91,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminAddUserToGroup', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminConfirmSignUpRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminConfirmSignUpRequest.php index 37e1f0a96e..c4345e14b5 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminConfirmSignUpRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminConfirmSignUpRequest.php @@ -115,6 +115,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminConfirmSignUp', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminCreateUserRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminCreateUserRequest.php index 834b80b349..bd9e355455 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminCreateUserRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminCreateUserRequest.php @@ -280,6 +280,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminCreateUser', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminDeleteUserRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminDeleteUserRequest.php index 09b45ad09e..201a537dd5 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminDeleteUserRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminDeleteUserRequest.php @@ -77,6 +77,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminDeleteUser', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminDisableUserRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminDisableUserRequest.php index fee79f5b51..c6e1eee1f3 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminDisableUserRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminDisableUserRequest.php @@ -77,6 +77,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminDisableUser', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminEnableUserRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminEnableUserRequest.php index 798bd3b238..3b6483ab07 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminEnableUserRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminEnableUserRequest.php @@ -77,6 +77,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminEnableUser', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminGetUserRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminGetUserRequest.php index 22f6d4d536..64d690ecc5 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminGetUserRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminGetUserRequest.php @@ -77,6 +77,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminGetUser', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminInitiateAuthRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminInitiateAuthRequest.php index 43b443e545..0325d89780 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminInitiateAuthRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminInitiateAuthRequest.php @@ -236,6 +236,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminInitiateAuth', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminRemoveUserFromGroupRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminRemoveUserFromGroupRequest.php index 65743c23b8..d85865cce9 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminRemoveUserFromGroupRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminRemoveUserFromGroupRequest.php @@ -91,6 +91,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminRemoveUserFromGroup', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminResetUserPasswordRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminResetUserPasswordRequest.php index cab451e2b4..e87b8402bd 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminResetUserPasswordRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminResetUserPasswordRequest.php @@ -116,6 +116,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminResetUserPassword', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminSetUserPasswordRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminSetUserPasswordRequest.php index 0de4b035e8..92030dda50 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminSetUserPasswordRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminSetUserPasswordRequest.php @@ -106,6 +106,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminSetUserPassword', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminUpdateUserAttributesRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminUpdateUserAttributesRequest.php index 215ac08ac1..0e0907c2c5 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminUpdateUserAttributesRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminUpdateUserAttributesRequest.php @@ -149,6 +149,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminUpdateUserAttributes', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AdminUserGlobalSignOutRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AdminUserGlobalSignOutRequest.php index ea16aba4fd..7eba06cf41 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AdminUserGlobalSignOutRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AdminUserGlobalSignOutRequest.php @@ -77,6 +77,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AdminUserGlobalSignOut', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/AssociateSoftwareTokenRequest.php b/src/Service/CognitoIdentityProvider/src/Input/AssociateSoftwareTokenRequest.php index 84d8e035af..5ec2f22fd7 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/AssociateSoftwareTokenRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/AssociateSoftwareTokenRequest.php @@ -68,6 +68,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.AssociateSoftwareToken', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/ChangePasswordRequest.php b/src/Service/CognitoIdentityProvider/src/Input/ChangePasswordRequest.php index 3e85a7f0d1..57056af4a7 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/ChangePasswordRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/ChangePasswordRequest.php @@ -92,6 +92,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.ChangePassword', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/ConfirmForgotPasswordRequest.php b/src/Service/CognitoIdentityProvider/src/Input/ConfirmForgotPasswordRequest.php index a80dac50a3..ca9a95dcfa 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/ConfirmForgotPasswordRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/ConfirmForgotPasswordRequest.php @@ -205,6 +205,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.ConfirmForgotPassword', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/ConfirmSignUpRequest.php b/src/Service/CognitoIdentityProvider/src/Input/ConfirmSignUpRequest.php index d6ee78470a..88f827b46b 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/ConfirmSignUpRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/ConfirmSignUpRequest.php @@ -201,6 +201,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.ConfirmSignUp', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/CreateGroupRequest.php b/src/Service/CognitoIdentityProvider/src/Input/CreateGroupRequest.php index 5cfa349980..dc2b3083a9 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/CreateGroupRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/CreateGroupRequest.php @@ -128,6 +128,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.CreateGroup', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/ForgotPasswordRequest.php b/src/Service/CognitoIdentityProvider/src/Input/ForgotPasswordRequest.php index da31c94e8f..8e8aa5df96 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/ForgotPasswordRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/ForgotPasswordRequest.php @@ -166,6 +166,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.ForgotPassword', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/GetUserRequest.php b/src/Service/CognitoIdentityProvider/src/Input/GetUserRequest.php index bc72dd3ef4..b939e924dc 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/GetUserRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/GetUserRequest.php @@ -58,6 +58,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.GetUser', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/InitiateAuthRequest.php b/src/Service/CognitoIdentityProvider/src/Input/InitiateAuthRequest.php index c4ebf94505..63844e0422 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/InitiateAuthRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/InitiateAuthRequest.php @@ -219,6 +219,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.InitiateAuth', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/ListGroupsRequest.php b/src/Service/CognitoIdentityProvider/src/Input/ListGroupsRequest.php index db04f0285e..efa7747e38 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/ListGroupsRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/ListGroupsRequest.php @@ -86,6 +86,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.ListGroups', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/ListUsersRequest.php b/src/Service/CognitoIdentityProvider/src/Input/ListUsersRequest.php index 98f1c89ebf..2716454df7 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/ListUsersRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/ListUsersRequest.php @@ -171,6 +171,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.ListUsers', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/ResendConfirmationCodeRequest.php b/src/Service/CognitoIdentityProvider/src/Input/ResendConfirmationCodeRequest.php index 5008c74553..cff1bb14ac 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/ResendConfirmationCodeRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/ResendConfirmationCodeRequest.php @@ -166,6 +166,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.ResendConfirmationCode', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/RespondToAuthChallengeRequest.php b/src/Service/CognitoIdentityProvider/src/Input/RespondToAuthChallengeRequest.php index b498cf1657..9506c6ff2c 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/RespondToAuthChallengeRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/RespondToAuthChallengeRequest.php @@ -252,6 +252,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.RespondToAuthChallenge', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/RevokeTokenRequest.php b/src/Service/CognitoIdentityProvider/src/Input/RevokeTokenRequest.php index d4639211e3..30aaa4888f 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/RevokeTokenRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/RevokeTokenRequest.php @@ -87,6 +87,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.RevokeToken', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/SetUserMFAPreferenceRequest.php b/src/Service/CognitoIdentityProvider/src/Input/SetUserMFAPreferenceRequest.php index cbe0de585a..2350dd377a 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/SetUserMFAPreferenceRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/SetUserMFAPreferenceRequest.php @@ -87,6 +87,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.SetUserMFAPreference', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/SignUpRequest.php b/src/Service/CognitoIdentityProvider/src/Input/SignUpRequest.php index 06c282d785..1fb7ab2e5b 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/SignUpRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/SignUpRequest.php @@ -231,6 +231,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.SignUp', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/CognitoIdentityProvider/src/Input/VerifySoftwareTokenRequest.php b/src/Service/CognitoIdentityProvider/src/Input/VerifySoftwareTokenRequest.php index 8864f908a6..11e190f442 100644 --- a/src/Service/CognitoIdentityProvider/src/Input/VerifySoftwareTokenRequest.php +++ b/src/Service/CognitoIdentityProvider/src/Input/VerifySoftwareTokenRequest.php @@ -102,6 +102,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSCognitoIdentityProviderService.VerifySoftwareToken', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Comprehend/CHANGELOG.md b/src/Service/Comprehend/CHANGELOG.md index f71575f2aa..87c5118107 100644 --- a/src/Service/Comprehend/CHANGELOG.md +++ b/src/Service/Comprehend/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.1.2 ### Changed diff --git a/src/Service/Comprehend/src/Input/DetectDominantLanguageRequest.php b/src/Service/Comprehend/src/Input/DetectDominantLanguageRequest.php index 6f22755ae7..ec1fc80730 100644 --- a/src/Service/Comprehend/src/Input/DetectDominantLanguageRequest.php +++ b/src/Service/Comprehend/src/Input/DetectDominantLanguageRequest.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Comprehend_20171127.DetectDominantLanguage', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/CHANGELOG.md b/src/Service/DynamoDb/CHANGELOG.md index b64ac886de..8000656d81 100644 --- a/src/Service/DynamoDb/CHANGELOG.md +++ b/src/Service/DynamoDb/CHANGELOG.md @@ -4,6 +4,10 @@ ### Changed +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + +### Changed + - AWS enhancement: Documentation updates. ## 3.2.0 diff --git a/src/Service/DynamoDb/src/Input/BatchGetItemInput.php b/src/Service/DynamoDb/src/Input/BatchGetItemInput.php index 9dbdeebed6..4840c22280 100644 --- a/src/Service/DynamoDb/src/Input/BatchGetItemInput.php +++ b/src/Service/DynamoDb/src/Input/BatchGetItemInput.php @@ -135,6 +135,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.BatchGetItem', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/BatchWriteItemInput.php b/src/Service/DynamoDb/src/Input/BatchWriteItemInput.php index 95f58abff4..b4f634eea4 100644 --- a/src/Service/DynamoDb/src/Input/BatchWriteItemInput.php +++ b/src/Service/DynamoDb/src/Input/BatchWriteItemInput.php @@ -125,6 +125,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.BatchWriteItem', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/CreateTableInput.php b/src/Service/DynamoDb/src/Input/CreateTableInput.php index fcd876e8f5..7fa90e23cc 100644 --- a/src/Service/DynamoDb/src/Input/CreateTableInput.php +++ b/src/Service/DynamoDb/src/Input/CreateTableInput.php @@ -407,6 +407,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.CreateTable', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/DeleteItemInput.php b/src/Service/DynamoDb/src/Input/DeleteItemInput.php index d60d622350..5e096213fc 100644 --- a/src/Service/DynamoDb/src/Input/DeleteItemInput.php +++ b/src/Service/DynamoDb/src/Input/DeleteItemInput.php @@ -347,6 +347,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.DeleteItem', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/DeleteTableInput.php b/src/Service/DynamoDb/src/Input/DeleteTableInput.php index ecca790142..776479aa21 100644 --- a/src/Service/DynamoDb/src/Input/DeleteTableInput.php +++ b/src/Service/DynamoDb/src/Input/DeleteTableInput.php @@ -58,6 +58,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.DeleteTable', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/DescribeEndpointsRequest.php b/src/Service/DynamoDb/src/Input/DescribeEndpointsRequest.php index 31e835ae06..6c5a4730a8 100644 --- a/src/Service/DynamoDb/src/Input/DescribeEndpointsRequest.php +++ b/src/Service/DynamoDb/src/Input/DescribeEndpointsRequest.php @@ -37,6 +37,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.DescribeEndpoints', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/DescribeTableInput.php b/src/Service/DynamoDb/src/Input/DescribeTableInput.php index 5bf741c085..943989742d 100644 --- a/src/Service/DynamoDb/src/Input/DescribeTableInput.php +++ b/src/Service/DynamoDb/src/Input/DescribeTableInput.php @@ -59,6 +59,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.DescribeTable', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/ExecuteStatementInput.php b/src/Service/DynamoDb/src/Input/ExecuteStatementInput.php index 98ae93d790..1e8f85da64 100644 --- a/src/Service/DynamoDb/src/Input/ExecuteStatementInput.php +++ b/src/Service/DynamoDb/src/Input/ExecuteStatementInput.php @@ -165,6 +165,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.ExecuteStatement', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/GetItemInput.php b/src/Service/DynamoDb/src/Input/GetItemInput.php index d4a529449e..291d5c1797 100644 --- a/src/Service/DynamoDb/src/Input/GetItemInput.php +++ b/src/Service/DynamoDb/src/Input/GetItemInput.php @@ -214,6 +214,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.GetItem', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/ListTablesInput.php b/src/Service/DynamoDb/src/Input/ListTablesInput.php index b279e64765..f955dc1c89 100644 --- a/src/Service/DynamoDb/src/Input/ListTablesInput.php +++ b/src/Service/DynamoDb/src/Input/ListTablesInput.php @@ -71,6 +71,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.ListTables', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/PutItemInput.php b/src/Service/DynamoDb/src/Input/PutItemInput.php index 7600077e83..be64ab239c 100644 --- a/src/Service/DynamoDb/src/Input/PutItemInput.php +++ b/src/Service/DynamoDb/src/Input/PutItemInput.php @@ -362,6 +362,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.PutItem', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/QueryInput.php b/src/Service/DynamoDb/src/Input/QueryInput.php index cb8c1d72e1..dbfe4ad890 100644 --- a/src/Service/DynamoDb/src/Input/QueryInput.php +++ b/src/Service/DynamoDb/src/Input/QueryInput.php @@ -536,6 +536,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.Query', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/ScanInput.php b/src/Service/DynamoDb/src/Input/ScanInput.php index 0f566b6da2..9fe1d1161b 100644 --- a/src/Service/DynamoDb/src/Input/ScanInput.php +++ b/src/Service/DynamoDb/src/Input/ScanInput.php @@ -476,6 +476,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.Scan', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/TransactWriteItemsInput.php b/src/Service/DynamoDb/src/Input/TransactWriteItemsInput.php index 56193db852..90798bbe58 100644 --- a/src/Service/DynamoDb/src/Input/TransactWriteItemsInput.php +++ b/src/Service/DynamoDb/src/Input/TransactWriteItemsInput.php @@ -132,6 +132,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.TransactWriteItems', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/UpdateItemInput.php b/src/Service/DynamoDb/src/Input/UpdateItemInput.php index ffa8c5461c..bc7ab61827 100644 --- a/src/Service/DynamoDb/src/Input/UpdateItemInput.php +++ b/src/Service/DynamoDb/src/Input/UpdateItemInput.php @@ -453,6 +453,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.UpdateItem', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/UpdateTableInput.php b/src/Service/DynamoDb/src/Input/UpdateTableInput.php index 359f8fe19c..c4891a4bae 100644 --- a/src/Service/DynamoDb/src/Input/UpdateTableInput.php +++ b/src/Service/DynamoDb/src/Input/UpdateTableInput.php @@ -262,6 +262,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.UpdateTable', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/DynamoDb/src/Input/UpdateTimeToLiveInput.php b/src/Service/DynamoDb/src/Input/UpdateTimeToLiveInput.php index da359a66d1..63951ab9bf 100644 --- a/src/Service/DynamoDb/src/Input/UpdateTimeToLiveInput.php +++ b/src/Service/DynamoDb/src/Input/UpdateTimeToLiveInput.php @@ -77,6 +77,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'DynamoDB_20120810.UpdateTimeToLive', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Ecr/CHANGELOG.md b/src/Service/Ecr/CHANGELOG.md index 1b1f04e690..12afb01616 100644 --- a/src/Service/Ecr/CHANGELOG.md +++ b/src/Service/Ecr/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.6.0 ### Added diff --git a/src/Service/Ecr/src/Input/GetAuthorizationTokenRequest.php b/src/Service/Ecr/src/Input/GetAuthorizationTokenRequest.php index d2a1a70a27..7f4e16f14a 100644 --- a/src/Service/Ecr/src/Input/GetAuthorizationTokenRequest.php +++ b/src/Service/Ecr/src/Input/GetAuthorizationTokenRequest.php @@ -60,6 +60,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonEC2ContainerRegistry_V20150921.GetAuthorizationToken', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/EventBridge/CHANGELOG.md b/src/Service/EventBridge/CHANGELOG.md index 489eb981d9..5f64f7ad26 100644 --- a/src/Service/EventBridge/CHANGELOG.md +++ b/src/Service/EventBridge/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.5.3 ### Changed diff --git a/src/Service/EventBridge/src/Input/PutEventsRequest.php b/src/Service/EventBridge/src/Input/PutEventsRequest.php index af1f5f2fa1..2f29eb0aec 100644 --- a/src/Service/EventBridge/src/Input/PutEventsRequest.php +++ b/src/Service/EventBridge/src/Input/PutEventsRequest.php @@ -78,6 +78,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSEvents.PutEvents', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Firehose/CHANGELOG.md b/src/Service/Firehose/CHANGELOG.md index 80dc628e83..b44e500229 100644 --- a/src/Service/Firehose/CHANGELOG.md +++ b/src/Service/Firehose/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.3.0 ### Added diff --git a/src/Service/Firehose/src/Input/PutRecordBatchInput.php b/src/Service/Firehose/src/Input/PutRecordBatchInput.php index 814ae59f32..a02c10b0f4 100644 --- a/src/Service/Firehose/src/Input/PutRecordBatchInput.php +++ b/src/Service/Firehose/src/Input/PutRecordBatchInput.php @@ -76,6 +76,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Firehose_20150804.PutRecordBatch', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Firehose/src/Input/PutRecordInput.php b/src/Service/Firehose/src/Input/PutRecordInput.php index 1ed99090cd..7951cdc6a8 100644 --- a/src/Service/Firehose/src/Input/PutRecordInput.php +++ b/src/Service/Firehose/src/Input/PutRecordInput.php @@ -73,6 +73,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Firehose_20150804.PutRecord', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Iot/CHANGELOG.md b/src/Service/Iot/CHANGELOG.md index 7a3b4fb420..96130c6638 100644 --- a/src/Service/Iot/CHANGELOG.md +++ b/src/Service/Iot/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 2.0.2 ### Changed diff --git a/src/Service/Iot/src/Input/AddThingToThingGroupRequest.php b/src/Service/Iot/src/Input/AddThingToThingGroupRequest.php index 48ab25ca66..e9f848708b 100644 --- a/src/Service/Iot/src/Input/AddThingToThingGroupRequest.php +++ b/src/Service/Iot/src/Input/AddThingToThingGroupRequest.php @@ -111,7 +111,10 @@ public function getThingName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/CreateThingGroupRequest.php b/src/Service/Iot/src/Input/CreateThingGroupRequest.php index faaee040ae..501e79f1d2 100644 --- a/src/Service/Iot/src/Input/CreateThingGroupRequest.php +++ b/src/Service/Iot/src/Input/CreateThingGroupRequest.php @@ -102,7 +102,10 @@ public function getThingGroupProperties(): ?ThingGroupProperties public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/CreateThingRequest.php b/src/Service/Iot/src/Input/CreateThingRequest.php index 9f6220cfbe..bb9ef94aef 100644 --- a/src/Service/Iot/src/Input/CreateThingRequest.php +++ b/src/Service/Iot/src/Input/CreateThingRequest.php @@ -106,7 +106,10 @@ public function getThingTypeName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/CreateThingTypeRequest.php b/src/Service/Iot/src/Input/CreateThingTypeRequest.php index 4adc01b414..21a56daef0 100644 --- a/src/Service/Iot/src/Input/CreateThingTypeRequest.php +++ b/src/Service/Iot/src/Input/CreateThingTypeRequest.php @@ -91,7 +91,10 @@ public function getThingTypeProperties(): ?ThingTypeProperties public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/DeleteThingGroupRequest.php b/src/Service/Iot/src/Input/DeleteThingGroupRequest.php index 0f7af2f867..7d2031878f 100644 --- a/src/Service/Iot/src/Input/DeleteThingGroupRequest.php +++ b/src/Service/Iot/src/Input/DeleteThingGroupRequest.php @@ -67,7 +67,10 @@ public function getThingGroupName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/DeleteThingRequest.php b/src/Service/Iot/src/Input/DeleteThingRequest.php index 2b09e90d25..d2eecf96e5 100644 --- a/src/Service/Iot/src/Input/DeleteThingRequest.php +++ b/src/Service/Iot/src/Input/DeleteThingRequest.php @@ -72,7 +72,10 @@ public function getThingName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/DeleteThingTypeRequest.php b/src/Service/Iot/src/Input/DeleteThingTypeRequest.php index 33afd4636f..18ecd0dd84 100644 --- a/src/Service/Iot/src/Input/DeleteThingTypeRequest.php +++ b/src/Service/Iot/src/Input/DeleteThingTypeRequest.php @@ -55,7 +55,10 @@ public function getThingTypeName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/ListThingGroupsForThingRequest.php b/src/Service/Iot/src/Input/ListThingGroupsForThingRequest.php index fc3568b648..e895a5d4db 100644 --- a/src/Service/Iot/src/Input/ListThingGroupsForThingRequest.php +++ b/src/Service/Iot/src/Input/ListThingGroupsForThingRequest.php @@ -83,7 +83,10 @@ public function getThingName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/ListThingGroupsRequest.php b/src/Service/Iot/src/Input/ListThingGroupsRequest.php index acf394d953..7b75854d1e 100644 --- a/src/Service/Iot/src/Input/ListThingGroupsRequest.php +++ b/src/Service/Iot/src/Input/ListThingGroupsRequest.php @@ -110,7 +110,10 @@ public function getRecursive(): ?bool public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/ListThingTypesRequest.php b/src/Service/Iot/src/Input/ListThingTypesRequest.php index ca703b502f..f5d30b2b05 100644 --- a/src/Service/Iot/src/Input/ListThingTypesRequest.php +++ b/src/Service/Iot/src/Input/ListThingTypesRequest.php @@ -83,7 +83,10 @@ public function getThingTypeName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/ListThingsInThingGroupRequest.php b/src/Service/Iot/src/Input/ListThingsInThingGroupRequest.php index 2386bfce4f..4e0c35f0ff 100644 --- a/src/Service/Iot/src/Input/ListThingsInThingGroupRequest.php +++ b/src/Service/Iot/src/Input/ListThingsInThingGroupRequest.php @@ -98,7 +98,10 @@ public function getThingGroupName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Iot/src/Input/ListThingsRequest.php b/src/Service/Iot/src/Input/ListThingsRequest.php index 6a58aeccf5..01945798c8 100644 --- a/src/Service/Iot/src/Input/ListThingsRequest.php +++ b/src/Service/Iot/src/Input/ListThingsRequest.php @@ -132,7 +132,10 @@ public function getUsePrefixAttributeValue(): ?bool public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/IotData/CHANGELOG.md b/src/Service/IotData/CHANGELOG.md index 942539ad57..c50d9f3702 100644 --- a/src/Service/IotData/CHANGELOG.md +++ b/src/Service/IotData/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.1.1 ### Changed diff --git a/src/Service/IotData/src/Input/GetThingShadowRequest.php b/src/Service/IotData/src/Input/GetThingShadowRequest.php index 3e8a59f35a..d0f2871beb 100644 --- a/src/Service/IotData/src/Input/GetThingShadowRequest.php +++ b/src/Service/IotData/src/Input/GetThingShadowRequest.php @@ -70,7 +70,10 @@ public function getThingName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/IotData/src/Input/UpdateThingShadowRequest.php b/src/Service/IotData/src/Input/UpdateThingShadowRequest.php index 4ed7bfb682..1886bfe4ac 100644 --- a/src/Service/IotData/src/Input/UpdateThingShadowRequest.php +++ b/src/Service/IotData/src/Input/UpdateThingShadowRequest.php @@ -87,7 +87,10 @@ public function getThingName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Kinesis/CHANGELOG.md b/src/Service/Kinesis/CHANGELOG.md index 74f396013b..df0fbc15e1 100644 --- a/src/Service/Kinesis/CHANGELOG.md +++ b/src/Service/Kinesis/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 3.0.2 ### Changed diff --git a/src/Service/Kinesis/src/Input/AddTagsToStreamInput.php b/src/Service/Kinesis/src/Input/AddTagsToStreamInput.php index c546c4532a..2dbecd078a 100644 --- a/src/Service/Kinesis/src/Input/AddTagsToStreamInput.php +++ b/src/Service/Kinesis/src/Input/AddTagsToStreamInput.php @@ -91,6 +91,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.AddTagsToStream', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/CreateStreamInput.php b/src/Service/Kinesis/src/Input/CreateStreamInput.php index fe5e7111bc..65f234cf84 100644 --- a/src/Service/Kinesis/src/Input/CreateStreamInput.php +++ b/src/Service/Kinesis/src/Input/CreateStreamInput.php @@ -94,6 +94,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.CreateStream', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/DecreaseStreamRetentionPeriodInput.php b/src/Service/Kinesis/src/Input/DecreaseStreamRetentionPeriodInput.php index e2716ce998..41a7e7ab22 100644 --- a/src/Service/Kinesis/src/Input/DecreaseStreamRetentionPeriodInput.php +++ b/src/Service/Kinesis/src/Input/DecreaseStreamRetentionPeriodInput.php @@ -88,6 +88,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.DecreaseStreamRetentionPeriod', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/DeleteStreamInput.php b/src/Service/Kinesis/src/Input/DeleteStreamInput.php index a3be0dee19..591e88e9fa 100644 --- a/src/Service/Kinesis/src/Input/DeleteStreamInput.php +++ b/src/Service/Kinesis/src/Input/DeleteStreamInput.php @@ -86,6 +86,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.DeleteStream', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/DeregisterStreamConsumerInput.php b/src/Service/Kinesis/src/Input/DeregisterStreamConsumerInput.php index 5c986c1428..dec16df0d6 100644 --- a/src/Service/Kinesis/src/Input/DeregisterStreamConsumerInput.php +++ b/src/Service/Kinesis/src/Input/DeregisterStreamConsumerInput.php @@ -87,6 +87,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.DeregisterStreamConsumer', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/DescribeLimitsInput.php b/src/Service/Kinesis/src/Input/DescribeLimitsInput.php index 8dd8d382b0..304a188693 100644 --- a/src/Service/Kinesis/src/Input/DescribeLimitsInput.php +++ b/src/Service/Kinesis/src/Input/DescribeLimitsInput.php @@ -37,6 +37,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.DescribeLimits', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/DescribeStreamConsumerInput.php b/src/Service/Kinesis/src/Input/DescribeStreamConsumerInput.php index 83b894f7ad..7b1bc4a87f 100644 --- a/src/Service/Kinesis/src/Input/DescribeStreamConsumerInput.php +++ b/src/Service/Kinesis/src/Input/DescribeStreamConsumerInput.php @@ -85,6 +85,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.DescribeStreamConsumer', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/DescribeStreamInput.php b/src/Service/Kinesis/src/Input/DescribeStreamInput.php index 37eb478278..16d81e8c73 100644 --- a/src/Service/Kinesis/src/Input/DescribeStreamInput.php +++ b/src/Service/Kinesis/src/Input/DescribeStreamInput.php @@ -107,6 +107,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.DescribeStream', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/DescribeStreamSummaryInput.php b/src/Service/Kinesis/src/Input/DescribeStreamSummaryInput.php index 8c1a2bf74d..ac6fa5a631 100644 --- a/src/Service/Kinesis/src/Input/DescribeStreamSummaryInput.php +++ b/src/Service/Kinesis/src/Input/DescribeStreamSummaryInput.php @@ -67,6 +67,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.DescribeStreamSummary', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/DisableEnhancedMonitoringInput.php b/src/Service/Kinesis/src/Input/DisableEnhancedMonitoringInput.php index a9becde777..39970a85b9 100644 --- a/src/Service/Kinesis/src/Input/DisableEnhancedMonitoringInput.php +++ b/src/Service/Kinesis/src/Input/DisableEnhancedMonitoringInput.php @@ -108,6 +108,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.DisableEnhancedMonitoring', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/EnableEnhancedMonitoringInput.php b/src/Service/Kinesis/src/Input/EnableEnhancedMonitoringInput.php index ed58caa68b..026ca782be 100644 --- a/src/Service/Kinesis/src/Input/EnableEnhancedMonitoringInput.php +++ b/src/Service/Kinesis/src/Input/EnableEnhancedMonitoringInput.php @@ -108,6 +108,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.EnableEnhancedMonitoring', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/GetRecordsInput.php b/src/Service/Kinesis/src/Input/GetRecordsInput.php index d6ce09aa24..ba18d4f5a1 100644 --- a/src/Service/Kinesis/src/Input/GetRecordsInput.php +++ b/src/Service/Kinesis/src/Input/GetRecordsInput.php @@ -90,6 +90,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.GetRecords', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/GetShardIteratorInput.php b/src/Service/Kinesis/src/Input/GetShardIteratorInput.php index b9e72dc705..083618c823 100644 --- a/src/Service/Kinesis/src/Input/GetShardIteratorInput.php +++ b/src/Service/Kinesis/src/Input/GetShardIteratorInput.php @@ -156,6 +156,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.GetShardIterator', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/IncreaseStreamRetentionPeriodInput.php b/src/Service/Kinesis/src/Input/IncreaseStreamRetentionPeriodInput.php index fee32f9e0b..9396e12d83 100644 --- a/src/Service/Kinesis/src/Input/IncreaseStreamRetentionPeriodInput.php +++ b/src/Service/Kinesis/src/Input/IncreaseStreamRetentionPeriodInput.php @@ -88,6 +88,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.IncreaseStreamRetentionPeriod', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/ListShardsInput.php b/src/Service/Kinesis/src/Input/ListShardsInput.php index 378d792426..88fd2e3ff7 100644 --- a/src/Service/Kinesis/src/Input/ListShardsInput.php +++ b/src/Service/Kinesis/src/Input/ListShardsInput.php @@ -188,6 +188,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.ListShards', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/ListStreamConsumersInput.php b/src/Service/Kinesis/src/Input/ListStreamConsumersInput.php index e5443746fc..216a486a6b 100644 --- a/src/Service/Kinesis/src/Input/ListStreamConsumersInput.php +++ b/src/Service/Kinesis/src/Input/ListStreamConsumersInput.php @@ -124,6 +124,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.ListStreamConsumers', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/ListStreamsInput.php b/src/Service/Kinesis/src/Input/ListStreamsInput.php index 588db33b85..1bd5508d91 100644 --- a/src/Service/Kinesis/src/Input/ListStreamsInput.php +++ b/src/Service/Kinesis/src/Input/ListStreamsInput.php @@ -84,6 +84,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.ListStreams', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/ListTagsForStreamInput.php b/src/Service/Kinesis/src/Input/ListTagsForStreamInput.php index d07c6c7b39..da613571e6 100644 --- a/src/Service/Kinesis/src/Input/ListTagsForStreamInput.php +++ b/src/Service/Kinesis/src/Input/ListTagsForStreamInput.php @@ -102,6 +102,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.ListTagsForStream', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/MergeShardsInput.php b/src/Service/Kinesis/src/Input/MergeShardsInput.php index c13d598901..49360f018d 100644 --- a/src/Service/Kinesis/src/Input/MergeShardsInput.php +++ b/src/Service/Kinesis/src/Input/MergeShardsInput.php @@ -105,6 +105,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.MergeShards', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/PutRecordInput.php b/src/Service/Kinesis/src/Input/PutRecordInput.php index 41e8069ef1..13807259b2 100644 --- a/src/Service/Kinesis/src/Input/PutRecordInput.php +++ b/src/Service/Kinesis/src/Input/PutRecordInput.php @@ -144,6 +144,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.PutRecord', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/PutRecordsInput.php b/src/Service/Kinesis/src/Input/PutRecordsInput.php index cff1d94bce..a401161f1c 100644 --- a/src/Service/Kinesis/src/Input/PutRecordsInput.php +++ b/src/Service/Kinesis/src/Input/PutRecordsInput.php @@ -92,6 +92,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.PutRecords', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/RegisterStreamConsumerInput.php b/src/Service/Kinesis/src/Input/RegisterStreamConsumerInput.php index b43e97e2c6..906c1be514 100644 --- a/src/Service/Kinesis/src/Input/RegisterStreamConsumerInput.php +++ b/src/Service/Kinesis/src/Input/RegisterStreamConsumerInput.php @@ -76,6 +76,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.RegisterStreamConsumer', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/RemoveTagsFromStreamInput.php b/src/Service/Kinesis/src/Input/RemoveTagsFromStreamInput.php index 4fe0a82c24..70883098f2 100644 --- a/src/Service/Kinesis/src/Input/RemoveTagsFromStreamInput.php +++ b/src/Service/Kinesis/src/Input/RemoveTagsFromStreamInput.php @@ -91,6 +91,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.RemoveTagsFromStream', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/SplitShardInput.php b/src/Service/Kinesis/src/Input/SplitShardInput.php index 450de98840..8a16702ad9 100644 --- a/src/Service/Kinesis/src/Input/SplitShardInput.php +++ b/src/Service/Kinesis/src/Input/SplitShardInput.php @@ -109,6 +109,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.SplitShard', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/StartStreamEncryptionInput.php b/src/Service/Kinesis/src/Input/StartStreamEncryptionInput.php index 6d3f54e1b8..40af8781bd 100644 --- a/src/Service/Kinesis/src/Input/StartStreamEncryptionInput.php +++ b/src/Service/Kinesis/src/Input/StartStreamEncryptionInput.php @@ -115,6 +115,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.StartStreamEncryption', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/StopStreamEncryptionInput.php b/src/Service/Kinesis/src/Input/StopStreamEncryptionInput.php index 26eeba06c3..364d4362d5 100644 --- a/src/Service/Kinesis/src/Input/StopStreamEncryptionInput.php +++ b/src/Service/Kinesis/src/Input/StopStreamEncryptionInput.php @@ -115,6 +115,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.StopStreamEncryption', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kinesis/src/Input/UpdateShardCountInput.php b/src/Service/Kinesis/src/Input/UpdateShardCountInput.php index 4994483712..dcc49cfc3f 100644 --- a/src/Service/Kinesis/src/Input/UpdateShardCountInput.php +++ b/src/Service/Kinesis/src/Input/UpdateShardCountInput.php @@ -112,6 +112,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'Kinesis_20131202.UpdateShardCount', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kms/CHANGELOG.md b/src/Service/Kms/CHANGELOG.md index 9678220e21..49a79d1b81 100644 --- a/src/Service/Kms/CHANGELOG.md +++ b/src/Service/Kms/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.4.0 ### Added diff --git a/src/Service/Kms/src/Input/CreateAliasRequest.php b/src/Service/Kms/src/Input/CreateAliasRequest.php index a58e04c885..2c231ebb8e 100644 --- a/src/Service/Kms/src/Input/CreateAliasRequest.php +++ b/src/Service/Kms/src/Input/CreateAliasRequest.php @@ -99,6 +99,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'TrentService.CreateAlias', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kms/src/Input/CreateKeyRequest.php b/src/Service/Kms/src/Input/CreateKeyRequest.php index 171a024a75..e5c1347d75 100644 --- a/src/Service/Kms/src/Input/CreateKeyRequest.php +++ b/src/Service/Kms/src/Input/CreateKeyRequest.php @@ -423,6 +423,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'TrentService.CreateKey', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kms/src/Input/DecryptRequest.php b/src/Service/Kms/src/Input/DecryptRequest.php index ee04d584ef..beff021a5c 100644 --- a/src/Service/Kms/src/Input/DecryptRequest.php +++ b/src/Service/Kms/src/Input/DecryptRequest.php @@ -221,6 +221,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'TrentService.Decrypt', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kms/src/Input/EncryptRequest.php b/src/Service/Kms/src/Input/EncryptRequest.php index f6267ea195..d32e1f073f 100644 --- a/src/Service/Kms/src/Input/EncryptRequest.php +++ b/src/Service/Kms/src/Input/EncryptRequest.php @@ -190,6 +190,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'TrentService.Encrypt', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kms/src/Input/GenerateDataKeyRequest.php b/src/Service/Kms/src/Input/GenerateDataKeyRequest.php index 51852a28f9..258b5c2b8f 100644 --- a/src/Service/Kms/src/Input/GenerateDataKeyRequest.php +++ b/src/Service/Kms/src/Input/GenerateDataKeyRequest.php @@ -220,6 +220,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'TrentService.GenerateDataKey', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kms/src/Input/ListAliasesRequest.php b/src/Service/Kms/src/Input/ListAliasesRequest.php index 480703ac97..b0d4bc145a 100644 --- a/src/Service/Kms/src/Input/ListAliasesRequest.php +++ b/src/Service/Kms/src/Input/ListAliasesRequest.php @@ -99,6 +99,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'TrentService.ListAliases', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Kms/src/Input/SignRequest.php b/src/Service/Kms/src/Input/SignRequest.php index a484ecb898..b2eeb6c478 100644 --- a/src/Service/Kms/src/Input/SignRequest.php +++ b/src/Service/Kms/src/Input/SignRequest.php @@ -202,6 +202,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'TrentService.Sign', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Lambda/CHANGELOG.md b/src/Service/Lambda/CHANGELOG.md index 3942d9e692..253f993e0a 100644 --- a/src/Service/Lambda/CHANGELOG.md +++ b/src/Service/Lambda/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 2.5.0 ### Added diff --git a/src/Service/Lambda/src/Input/AddLayerVersionPermissionRequest.php b/src/Service/Lambda/src/Input/AddLayerVersionPermissionRequest.php index 31eae1a41a..26a74e8f31 100644 --- a/src/Service/Lambda/src/Input/AddLayerVersionPermissionRequest.php +++ b/src/Service/Lambda/src/Input/AddLayerVersionPermissionRequest.php @@ -153,7 +153,10 @@ public function getVersionNumber(): ?int public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Lambda/src/Input/DeleteFunctionRequest.php b/src/Service/Lambda/src/Input/DeleteFunctionRequest.php index ea20d0b8ef..d3f1c5ee4e 100644 --- a/src/Service/Lambda/src/Input/DeleteFunctionRequest.php +++ b/src/Service/Lambda/src/Input/DeleteFunctionRequest.php @@ -76,7 +76,10 @@ public function getQualifier(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Lambda/src/Input/GetFunctionConfigurationRequest.php b/src/Service/Lambda/src/Input/GetFunctionConfigurationRequest.php index 5b492ed704..2cb26f878d 100644 --- a/src/Service/Lambda/src/Input/GetFunctionConfigurationRequest.php +++ b/src/Service/Lambda/src/Input/GetFunctionConfigurationRequest.php @@ -76,7 +76,10 @@ public function getQualifier(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Lambda/src/Input/InvocationRequest.php b/src/Service/Lambda/src/Input/InvocationRequest.php index e1c8f79e6b..bbcc7e2915 100644 --- a/src/Service/Lambda/src/Input/InvocationRequest.php +++ b/src/Service/Lambda/src/Input/InvocationRequest.php @@ -154,7 +154,10 @@ public function getQualifier(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; if (null !== $this->invocationType) { if (!InvocationType::exists($this->invocationType)) { throw new InvalidArgument(sprintf('Invalid parameter "InvocationType" for "%s". The value "%s" is not a valid "InvocationType".', __CLASS__, $this->invocationType)); diff --git a/src/Service/Lambda/src/Input/ListFunctionsRequest.php b/src/Service/Lambda/src/Input/ListFunctionsRequest.php index c7e44b62a0..d3e138ee65 100644 --- a/src/Service/Lambda/src/Input/ListFunctionsRequest.php +++ b/src/Service/Lambda/src/Input/ListFunctionsRequest.php @@ -102,7 +102,10 @@ public function getMaxItems(): ?int public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Lambda/src/Input/ListLayerVersionsRequest.php b/src/Service/Lambda/src/Input/ListLayerVersionsRequest.php index 6cb873bf10..30773b8d2c 100644 --- a/src/Service/Lambda/src/Input/ListLayerVersionsRequest.php +++ b/src/Service/Lambda/src/Input/ListLayerVersionsRequest.php @@ -126,7 +126,10 @@ public function getMaxItems(): ?int public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Lambda/src/Input/ListVersionsByFunctionRequest.php b/src/Service/Lambda/src/Input/ListVersionsByFunctionRequest.php index 4b1a7ee5e0..551432351a 100644 --- a/src/Service/Lambda/src/Input/ListVersionsByFunctionRequest.php +++ b/src/Service/Lambda/src/Input/ListVersionsByFunctionRequest.php @@ -92,7 +92,10 @@ public function getMaxItems(): ?int public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Lambda/src/Input/PublishLayerVersionRequest.php b/src/Service/Lambda/src/Input/PublishLayerVersionRequest.php index 5d383c39c3..7305e1da87 100644 --- a/src/Service/Lambda/src/Input/PublishLayerVersionRequest.php +++ b/src/Service/Lambda/src/Input/PublishLayerVersionRequest.php @@ -151,7 +151,10 @@ public function getLicenseInfo(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Lambda/src/Input/UpdateFunctionConfigurationRequest.php b/src/Service/Lambda/src/Input/UpdateFunctionConfigurationRequest.php index 842ce1a32a..aab3524f31 100644 --- a/src/Service/Lambda/src/Input/UpdateFunctionConfigurationRequest.php +++ b/src/Service/Lambda/src/Input/UpdateFunctionConfigurationRequest.php @@ -393,7 +393,10 @@ public function getVpcConfig(): ?VpcConfig public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/LocationService/CHANGELOG.md b/src/Service/LocationService/CHANGELOG.md index abdadb7ae0..02b0727d37 100644 --- a/src/Service/LocationService/CHANGELOG.md +++ b/src/Service/LocationService/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.0.2 ### Changed diff --git a/src/Service/LocationService/src/Input/CalculateRouteMatrixRequest.php b/src/Service/LocationService/src/Input/CalculateRouteMatrixRequest.php index 6a2e9e15d3..0c480319af 100644 --- a/src/Service/LocationService/src/Input/CalculateRouteMatrixRequest.php +++ b/src/Service/LocationService/src/Input/CalculateRouteMatrixRequest.php @@ -275,7 +275,10 @@ public function getTruckModeOptions(): ?CalculateRouteTruckModeOptions public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/LocationService/src/Input/CalculateRouteRequest.php b/src/Service/LocationService/src/Input/CalculateRouteRequest.php index b15a23ec57..f5955f0ce3 100644 --- a/src/Service/LocationService/src/Input/CalculateRouteRequest.php +++ b/src/Service/LocationService/src/Input/CalculateRouteRequest.php @@ -354,7 +354,10 @@ public function getWaypointPositions(): array public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/LocationService/src/Input/SearchPlaceIndexForPositionRequest.php b/src/Service/LocationService/src/Input/SearchPlaceIndexForPositionRequest.php index 96a5f1881c..9a50c73072 100644 --- a/src/Service/LocationService/src/Input/SearchPlaceIndexForPositionRequest.php +++ b/src/Service/LocationService/src/Input/SearchPlaceIndexForPositionRequest.php @@ -141,7 +141,10 @@ public function getPosition(): array public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/LocationService/src/Input/SearchPlaceIndexForTextRequest.php b/src/Service/LocationService/src/Input/SearchPlaceIndexForTextRequest.php index 8c5201ca64..1ab05aa704 100644 --- a/src/Service/LocationService/src/Input/SearchPlaceIndexForTextRequest.php +++ b/src/Service/LocationService/src/Input/SearchPlaceIndexForTextRequest.php @@ -236,7 +236,10 @@ public function getText(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/MediaConvert/CHANGELOG.md b/src/Service/MediaConvert/CHANGELOG.md index 20a7421c5c..4bb8a561c3 100644 --- a/src/Service/MediaConvert/CHANGELOG.md +++ b/src/Service/MediaConvert/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.2.0 ### Added diff --git a/src/Service/MediaConvert/src/Input/CancelJobRequest.php b/src/Service/MediaConvert/src/Input/CancelJobRequest.php index 7fa1aca67a..59645c447a 100644 --- a/src/Service/MediaConvert/src/Input/CancelJobRequest.php +++ b/src/Service/MediaConvert/src/Input/CancelJobRequest.php @@ -55,7 +55,10 @@ public function getId(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/MediaConvert/src/Input/CreateJobRequest.php b/src/Service/MediaConvert/src/Input/CreateJobRequest.php index 1343d3f868..f8e856195a 100644 --- a/src/Service/MediaConvert/src/Input/CreateJobRequest.php +++ b/src/Service/MediaConvert/src/Input/CreateJobRequest.php @@ -286,7 +286,10 @@ public function getUserMetadata(): array public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/MediaConvert/src/Input/DescribeEndpointsRequest.php b/src/Service/MediaConvert/src/Input/DescribeEndpointsRequest.php index aa4e4054e3..df75ddb9f8 100644 --- a/src/Service/MediaConvert/src/Input/DescribeEndpointsRequest.php +++ b/src/Service/MediaConvert/src/Input/DescribeEndpointsRequest.php @@ -89,7 +89,10 @@ public function getNextToken(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/MediaConvert/src/Input/GetJobRequest.php b/src/Service/MediaConvert/src/Input/GetJobRequest.php index 82114d23fd..74b0296d5c 100644 --- a/src/Service/MediaConvert/src/Input/GetJobRequest.php +++ b/src/Service/MediaConvert/src/Input/GetJobRequest.php @@ -55,7 +55,10 @@ public function getId(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/MediaConvert/src/Input/ListJobsRequest.php b/src/Service/MediaConvert/src/Input/ListJobsRequest.php index 151eb79605..5e4a228634 100644 --- a/src/Service/MediaConvert/src/Input/ListJobsRequest.php +++ b/src/Service/MediaConvert/src/Input/ListJobsRequest.php @@ -124,7 +124,10 @@ public function getStatus(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/RdsDataService/CHANGELOG.md b/src/Service/RdsDataService/CHANGELOG.md index bc84c1a50e..e0a48c6bc0 100644 --- a/src/Service/RdsDataService/CHANGELOG.md +++ b/src/Service/RdsDataService/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 2.1.1 ### Changed diff --git a/src/Service/RdsDataService/src/Input/BatchExecuteStatementRequest.php b/src/Service/RdsDataService/src/Input/BatchExecuteStatementRequest.php index f283f78870..dc0cd0b860 100644 --- a/src/Service/RdsDataService/src/Input/BatchExecuteStatementRequest.php +++ b/src/Service/RdsDataService/src/Input/BatchExecuteStatementRequest.php @@ -173,7 +173,10 @@ public function getTransactionId(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/RdsDataService/src/Input/BeginTransactionRequest.php b/src/Service/RdsDataService/src/Input/BeginTransactionRequest.php index d4bbaa080e..906b6cb3a5 100644 --- a/src/Service/RdsDataService/src/Input/BeginTransactionRequest.php +++ b/src/Service/RdsDataService/src/Input/BeginTransactionRequest.php @@ -102,7 +102,10 @@ public function getSecretArn(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/RdsDataService/src/Input/CommitTransactionRequest.php b/src/Service/RdsDataService/src/Input/CommitTransactionRequest.php index 69bcc47b8a..32e56d5e9f 100644 --- a/src/Service/RdsDataService/src/Input/CommitTransactionRequest.php +++ b/src/Service/RdsDataService/src/Input/CommitTransactionRequest.php @@ -89,7 +89,10 @@ public function getTransactionId(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/RdsDataService/src/Input/ExecuteStatementRequest.php b/src/Service/RdsDataService/src/Input/ExecuteStatementRequest.php index 3e5440084b..c59081a3a5 100644 --- a/src/Service/RdsDataService/src/Input/ExecuteStatementRequest.php +++ b/src/Service/RdsDataService/src/Input/ExecuteStatementRequest.php @@ -242,7 +242,10 @@ public function getTransactionId(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/RdsDataService/src/Input/RollbackTransactionRequest.php b/src/Service/RdsDataService/src/Input/RollbackTransactionRequest.php index bcca59cd0b..600a064c20 100644 --- a/src/Service/RdsDataService/src/Input/RollbackTransactionRequest.php +++ b/src/Service/RdsDataService/src/Input/RollbackTransactionRequest.php @@ -89,7 +89,10 @@ public function getTransactionId(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Rekognition/CHANGELOG.md b/src/Service/Rekognition/CHANGELOG.md index 9a86b5db97..2708b9befc 100644 --- a/src/Service/Rekognition/CHANGELOG.md +++ b/src/Service/Rekognition/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.2.0 ### Added diff --git a/src/Service/Rekognition/src/Input/CreateCollectionRequest.php b/src/Service/Rekognition/src/Input/CreateCollectionRequest.php index 1f55797559..96344c0335 100644 --- a/src/Service/Rekognition/src/Input/CreateCollectionRequest.php +++ b/src/Service/Rekognition/src/Input/CreateCollectionRequest.php @@ -73,6 +73,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.CreateCollection', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Rekognition/src/Input/CreateProjectRequest.php b/src/Service/Rekognition/src/Input/CreateProjectRequest.php index 7465bbfcc2..85b4bf7cb0 100644 --- a/src/Service/Rekognition/src/Input/CreateProjectRequest.php +++ b/src/Service/Rekognition/src/Input/CreateProjectRequest.php @@ -94,6 +94,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.CreateProject', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Rekognition/src/Input/DeleteCollectionRequest.php b/src/Service/Rekognition/src/Input/DeleteCollectionRequest.php index 666bca14b4..fcae0f07e0 100644 --- a/src/Service/Rekognition/src/Input/DeleteCollectionRequest.php +++ b/src/Service/Rekognition/src/Input/DeleteCollectionRequest.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.DeleteCollection', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Rekognition/src/Input/DeleteProjectRequest.php b/src/Service/Rekognition/src/Input/DeleteProjectRequest.php index 37c7daecc6..833317cfe6 100644 --- a/src/Service/Rekognition/src/Input/DeleteProjectRequest.php +++ b/src/Service/Rekognition/src/Input/DeleteProjectRequest.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.DeleteProject', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Rekognition/src/Input/DetectFacesRequest.php b/src/Service/Rekognition/src/Input/DetectFacesRequest.php index 764b23559e..0883f0c6c2 100644 --- a/src/Service/Rekognition/src/Input/DetectFacesRequest.php +++ b/src/Service/Rekognition/src/Input/DetectFacesRequest.php @@ -88,6 +88,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.DetectFaces', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Rekognition/src/Input/DetectModerationLabelsRequest.php b/src/Service/Rekognition/src/Input/DetectModerationLabelsRequest.php index cf0b3df58c..9bad6e58f9 100644 --- a/src/Service/Rekognition/src/Input/DetectModerationLabelsRequest.php +++ b/src/Service/Rekognition/src/Input/DetectModerationLabelsRequest.php @@ -111,6 +111,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.DetectModerationLabels', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Rekognition/src/Input/GetCelebrityInfoRequest.php b/src/Service/Rekognition/src/Input/GetCelebrityInfoRequest.php index b718c0ca4e..f3f55fbb55 100644 --- a/src/Service/Rekognition/src/Input/GetCelebrityInfoRequest.php +++ b/src/Service/Rekognition/src/Input/GetCelebrityInfoRequest.php @@ -56,6 +56,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.GetCelebrityInfo', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Rekognition/src/Input/IndexFacesRequest.php b/src/Service/Rekognition/src/Input/IndexFacesRequest.php index 2e9e7a4fe8..dfb28f3447 100644 --- a/src/Service/Rekognition/src/Input/IndexFacesRequest.php +++ b/src/Service/Rekognition/src/Input/IndexFacesRequest.php @@ -169,6 +169,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.IndexFaces', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Rekognition/src/Input/ListCollectionsRequest.php b/src/Service/Rekognition/src/Input/ListCollectionsRequest.php index 03a88c0e66..25e784bf51 100644 --- a/src/Service/Rekognition/src/Input/ListCollectionsRequest.php +++ b/src/Service/Rekognition/src/Input/ListCollectionsRequest.php @@ -67,6 +67,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.ListCollections', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Rekognition/src/Input/RecognizeCelebritiesRequest.php b/src/Service/Rekognition/src/Input/RecognizeCelebritiesRequest.php index 67f424b39a..8fe7641c12 100644 --- a/src/Service/Rekognition/src/Input/RecognizeCelebritiesRequest.php +++ b/src/Service/Rekognition/src/Input/RecognizeCelebritiesRequest.php @@ -60,6 +60,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.RecognizeCelebrities', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Rekognition/src/Input/SearchFacesByImageRequest.php b/src/Service/Rekognition/src/Input/SearchFacesByImageRequest.php index 7b3fb1b5a3..ae06f784b9 100644 --- a/src/Service/Rekognition/src/Input/SearchFacesByImageRequest.php +++ b/src/Service/Rekognition/src/Input/SearchFacesByImageRequest.php @@ -135,6 +135,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'RekognitionService.SearchFacesByImage', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Scheduler/CHANGELOG.md b/src/Service/Scheduler/CHANGELOG.md index 749422da3e..773965e930 100644 --- a/src/Service/Scheduler/CHANGELOG.md +++ b/src/Service/Scheduler/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.1.1 ### Changed diff --git a/src/Service/Scheduler/src/Input/CreateScheduleGroupInput.php b/src/Service/Scheduler/src/Input/CreateScheduleGroupInput.php index 6a5238f091..5354d058b7 100644 --- a/src/Service/Scheduler/src/Input/CreateScheduleGroupInput.php +++ b/src/Service/Scheduler/src/Input/CreateScheduleGroupInput.php @@ -87,7 +87,10 @@ public function getTags(): array public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Scheduler/src/Input/CreateScheduleInput.php b/src/Service/Scheduler/src/Input/CreateScheduleInput.php index 90162768c2..15728bfef7 100644 --- a/src/Service/Scheduler/src/Input/CreateScheduleInput.php +++ b/src/Service/Scheduler/src/Input/CreateScheduleInput.php @@ -276,7 +276,10 @@ public function getTarget(): ?Target public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Scheduler/src/Input/DeleteScheduleGroupInput.php b/src/Service/Scheduler/src/Input/DeleteScheduleGroupInput.php index 558f686476..8b71b8af43 100644 --- a/src/Service/Scheduler/src/Input/DeleteScheduleGroupInput.php +++ b/src/Service/Scheduler/src/Input/DeleteScheduleGroupInput.php @@ -68,7 +68,10 @@ public function getName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Scheduler/src/Input/DeleteScheduleInput.php b/src/Service/Scheduler/src/Input/DeleteScheduleInput.php index a1b3593a84..84cdee0181 100644 --- a/src/Service/Scheduler/src/Input/DeleteScheduleInput.php +++ b/src/Service/Scheduler/src/Input/DeleteScheduleInput.php @@ -83,7 +83,10 @@ public function getName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Scheduler/src/Input/GetScheduleGroupInput.php b/src/Service/Scheduler/src/Input/GetScheduleGroupInput.php index b6551c164b..9a5b2a0c53 100644 --- a/src/Service/Scheduler/src/Input/GetScheduleGroupInput.php +++ b/src/Service/Scheduler/src/Input/GetScheduleGroupInput.php @@ -52,7 +52,10 @@ public function getName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Scheduler/src/Input/GetScheduleInput.php b/src/Service/Scheduler/src/Input/GetScheduleInput.php index d32a86c117..37761a0ce8 100644 --- a/src/Service/Scheduler/src/Input/GetScheduleInput.php +++ b/src/Service/Scheduler/src/Input/GetScheduleInput.php @@ -68,7 +68,10 @@ public function getName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Scheduler/src/Input/ListScheduleGroupsInput.php b/src/Service/Scheduler/src/Input/ListScheduleGroupsInput.php index 18b381b9fc..b77abfa610 100644 --- a/src/Service/Scheduler/src/Input/ListScheduleGroupsInput.php +++ b/src/Service/Scheduler/src/Input/ListScheduleGroupsInput.php @@ -80,7 +80,10 @@ public function getNextToken(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Scheduler/src/Input/ListSchedulesInput.php b/src/Service/Scheduler/src/Input/ListSchedulesInput.php index ac8c7b7309..563c983d9a 100644 --- a/src/Service/Scheduler/src/Input/ListSchedulesInput.php +++ b/src/Service/Scheduler/src/Input/ListSchedulesInput.php @@ -115,7 +115,10 @@ public function getState(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Scheduler/src/Input/UpdateScheduleInput.php b/src/Service/Scheduler/src/Input/UpdateScheduleInput.php index 6e59d07c28..522d7c4d38 100644 --- a/src/Service/Scheduler/src/Input/UpdateScheduleInput.php +++ b/src/Service/Scheduler/src/Input/UpdateScheduleInput.php @@ -278,7 +278,10 @@ public function getTarget(): ?Target public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/SecretsManager/CHANGELOG.md b/src/Service/SecretsManager/CHANGELOG.md index 622f3935ce..310c54d75f 100644 --- a/src/Service/SecretsManager/CHANGELOG.md +++ b/src/Service/SecretsManager/CHANGELOG.md @@ -4,6 +4,10 @@ ### Changed +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + +### Changed + - AWS enhancement: Documentation updates. ## 2.2.2 diff --git a/src/Service/SecretsManager/src/Input/CreateSecretRequest.php b/src/Service/SecretsManager/src/Input/CreateSecretRequest.php index 107b8021e4..456ef9714b 100644 --- a/src/Service/SecretsManager/src/Input/CreateSecretRequest.php +++ b/src/Service/SecretsManager/src/Input/CreateSecretRequest.php @@ -261,6 +261,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'secretsmanager.CreateSecret', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/SecretsManager/src/Input/DeleteSecretRequest.php b/src/Service/SecretsManager/src/Input/DeleteSecretRequest.php index d07f5caf57..02dc961028 100644 --- a/src/Service/SecretsManager/src/Input/DeleteSecretRequest.php +++ b/src/Service/SecretsManager/src/Input/DeleteSecretRequest.php @@ -106,6 +106,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'secretsmanager.DeleteSecret', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/SecretsManager/src/Input/GetSecretValueRequest.php b/src/Service/SecretsManager/src/Input/GetSecretValueRequest.php index 28ab3f8442..1793896670 100644 --- a/src/Service/SecretsManager/src/Input/GetSecretValueRequest.php +++ b/src/Service/SecretsManager/src/Input/GetSecretValueRequest.php @@ -100,6 +100,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'secretsmanager.GetSecretValue', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/SecretsManager/src/Input/ListSecretsRequest.php b/src/Service/SecretsManager/src/Input/ListSecretsRequest.php index c7ddd42f28..3596e1ccf1 100644 --- a/src/Service/SecretsManager/src/Input/ListSecretsRequest.php +++ b/src/Service/SecretsManager/src/Input/ListSecretsRequest.php @@ -126,6 +126,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'secretsmanager.ListSecrets', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/SecretsManager/src/Input/PutSecretValueRequest.php b/src/Service/SecretsManager/src/Input/PutSecretValueRequest.php index eb4ad3c82d..05aeabed47 100644 --- a/src/Service/SecretsManager/src/Input/PutSecretValueRequest.php +++ b/src/Service/SecretsManager/src/Input/PutSecretValueRequest.php @@ -166,6 +166,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'secretsmanager.PutSecretValue', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/SecretsManager/src/Input/UpdateSecretRequest.php b/src/Service/SecretsManager/src/Input/UpdateSecretRequest.php index 08160f8940..7937fc62e1 100644 --- a/src/Service/SecretsManager/src/Input/UpdateSecretRequest.php +++ b/src/Service/SecretsManager/src/Input/UpdateSecretRequest.php @@ -176,6 +176,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'secretsmanager.UpdateSecret', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Ses/CHANGELOG.md b/src/Service/Ses/CHANGELOG.md index 0eb15ea4ef..f53b1480ac 100644 --- a/src/Service/Ses/CHANGELOG.md +++ b/src/Service/Ses/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.8.0 ### Added diff --git a/src/Service/Ses/src/Input/SendEmailRequest.php b/src/Service/Ses/src/Input/SendEmailRequest.php index a7b642d275..d6d8f87865 100644 --- a/src/Service/Ses/src/Input/SendEmailRequest.php +++ b/src/Service/Ses/src/Input/SendEmailRequest.php @@ -234,7 +234,10 @@ public function getReplyToAddresses(): array public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = []; diff --git a/src/Service/Sqs/CHANGELOG.md b/src/Service/Sqs/CHANGELOG.md index bc423d1ac0..8538e6f16f 100644 --- a/src/Service/Sqs/CHANGELOG.md +++ b/src/Service/Sqs/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 2.1.0 ### Added diff --git a/src/Service/Sqs/src/Input/ChangeMessageVisibilityBatchRequest.php b/src/Service/Sqs/src/Input/ChangeMessageVisibilityBatchRequest.php index 41becad1f5..10a1f3f5b4 100644 --- a/src/Service/Sqs/src/Input/ChangeMessageVisibilityBatchRequest.php +++ b/src/Service/Sqs/src/Input/ChangeMessageVisibilityBatchRequest.php @@ -78,6 +78,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.ChangeMessageVisibilityBatch', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/ChangeMessageVisibilityRequest.php b/src/Service/Sqs/src/Input/ChangeMessageVisibilityRequest.php index 07b14bacea..85f1ec54e9 100644 --- a/src/Service/Sqs/src/Input/ChangeMessageVisibilityRequest.php +++ b/src/Service/Sqs/src/Input/ChangeMessageVisibilityRequest.php @@ -92,6 +92,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.ChangeMessageVisibility', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/CreateQueueRequest.php b/src/Service/Sqs/src/Input/CreateQueueRequest.php index 8a4dd6be06..d334e893b2 100644 --- a/src/Service/Sqs/src/Input/CreateQueueRequest.php +++ b/src/Service/Sqs/src/Input/CreateQueueRequest.php @@ -247,6 +247,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.CreateQueue', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/DeleteMessageBatchRequest.php b/src/Service/Sqs/src/Input/DeleteMessageBatchRequest.php index cc7421923b..5daf55156e 100644 --- a/src/Service/Sqs/src/Input/DeleteMessageBatchRequest.php +++ b/src/Service/Sqs/src/Input/DeleteMessageBatchRequest.php @@ -78,6 +78,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.DeleteMessageBatch', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/DeleteMessageRequest.php b/src/Service/Sqs/src/Input/DeleteMessageRequest.php index d9a46a27a4..89a1e74e29 100644 --- a/src/Service/Sqs/src/Input/DeleteMessageRequest.php +++ b/src/Service/Sqs/src/Input/DeleteMessageRequest.php @@ -74,6 +74,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.DeleteMessage', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/DeleteQueueRequest.php b/src/Service/Sqs/src/Input/DeleteQueueRequest.php index c9c11007b4..dfd03a3389 100644 --- a/src/Service/Sqs/src/Input/DeleteQueueRequest.php +++ b/src/Service/Sqs/src/Input/DeleteQueueRequest.php @@ -57,6 +57,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.DeleteQueue', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/GetQueueAttributesRequest.php b/src/Service/Sqs/src/Input/GetQueueAttributesRequest.php index bc3c20b7ec..5b66c6209a 100644 --- a/src/Service/Sqs/src/Input/GetQueueAttributesRequest.php +++ b/src/Service/Sqs/src/Input/GetQueueAttributesRequest.php @@ -201,6 +201,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.GetQueueAttributes', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/GetQueueUrlRequest.php b/src/Service/Sqs/src/Input/GetQueueUrlRequest.php index 62bca372a7..74c12d7057 100644 --- a/src/Service/Sqs/src/Input/GetQueueUrlRequest.php +++ b/src/Service/Sqs/src/Input/GetQueueUrlRequest.php @@ -73,6 +73,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.GetQueueUrl', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/ListQueuesRequest.php b/src/Service/Sqs/src/Input/ListQueuesRequest.php index 46cc9fe69e..e30e5407a3 100644 --- a/src/Service/Sqs/src/Input/ListQueuesRequest.php +++ b/src/Service/Sqs/src/Input/ListQueuesRequest.php @@ -86,6 +86,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.ListQueues', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/PurgeQueueRequest.php b/src/Service/Sqs/src/Input/PurgeQueueRequest.php index c5df1877c8..e104541456 100644 --- a/src/Service/Sqs/src/Input/PurgeQueueRequest.php +++ b/src/Service/Sqs/src/Input/PurgeQueueRequest.php @@ -57,6 +57,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.PurgeQueue', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/ReceiveMessageRequest.php b/src/Service/Sqs/src/Input/ReceiveMessageRequest.php index 7bf39cb516..876c855b53 100644 --- a/src/Service/Sqs/src/Input/ReceiveMessageRequest.php +++ b/src/Service/Sqs/src/Input/ReceiveMessageRequest.php @@ -256,6 +256,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.ReceiveMessage', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/SendMessageBatchRequest.php b/src/Service/Sqs/src/Input/SendMessageBatchRequest.php index a3a7280fe7..3738d02dba 100644 --- a/src/Service/Sqs/src/Input/SendMessageBatchRequest.php +++ b/src/Service/Sqs/src/Input/SendMessageBatchRequest.php @@ -78,6 +78,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.SendMessageBatch', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sqs/src/Input/SendMessageRequest.php b/src/Service/Sqs/src/Input/SendMessageRequest.php index ea521ac78e..a9ff562343 100644 --- a/src/Service/Sqs/src/Input/SendMessageRequest.php +++ b/src/Service/Sqs/src/Input/SendMessageRequest.php @@ -251,6 +251,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AmazonSQS.SendMessage', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Ssm/CHANGELOG.md b/src/Service/Ssm/CHANGELOG.md index 0ee4d7728b..7e7d8a0763 100644 --- a/src/Service/Ssm/CHANGELOG.md +++ b/src/Service/Ssm/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 2.1.2 ### Changed diff --git a/src/Service/Ssm/src/Input/DeleteParameterRequest.php b/src/Service/Ssm/src/Input/DeleteParameterRequest.php index a5c4e93d2b..722eba0037 100644 --- a/src/Service/Ssm/src/Input/DeleteParameterRequest.php +++ b/src/Service/Ssm/src/Input/DeleteParameterRequest.php @@ -57,6 +57,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonSSM.DeleteParameter', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Ssm/src/Input/DeleteParametersRequest.php b/src/Service/Ssm/src/Input/DeleteParametersRequest.php index 75153e476a..bc740fda01 100644 --- a/src/Service/Ssm/src/Input/DeleteParametersRequest.php +++ b/src/Service/Ssm/src/Input/DeleteParametersRequest.php @@ -61,6 +61,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonSSM.DeleteParameters', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Ssm/src/Input/GetParameterRequest.php b/src/Service/Ssm/src/Input/GetParameterRequest.php index 7e4af5b9c7..c7ffd4b9cc 100644 --- a/src/Service/Ssm/src/Input/GetParameterRequest.php +++ b/src/Service/Ssm/src/Input/GetParameterRequest.php @@ -79,6 +79,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonSSM.GetParameter', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Ssm/src/Input/GetParametersByPathRequest.php b/src/Service/Ssm/src/Input/GetParametersByPathRequest.php index 385ef74f66..88b3e8ee56 100644 --- a/src/Service/Ssm/src/Input/GetParametersByPathRequest.php +++ b/src/Service/Ssm/src/Input/GetParametersByPathRequest.php @@ -148,6 +148,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonSSM.GetParametersByPath', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Ssm/src/Input/GetParametersRequest.php b/src/Service/Ssm/src/Input/GetParametersRequest.php index f15befa884..e390e4dfb7 100644 --- a/src/Service/Ssm/src/Input/GetParametersRequest.php +++ b/src/Service/Ssm/src/Input/GetParametersRequest.php @@ -84,6 +84,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonSSM.GetParameters', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Ssm/src/Input/PutParameterRequest.php b/src/Service/Ssm/src/Input/PutParameterRequest.php index 5605507db7..e4ec8c2416 100644 --- a/src/Service/Ssm/src/Input/PutParameterRequest.php +++ b/src/Service/Ssm/src/Input/PutParameterRequest.php @@ -367,6 +367,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AmazonSSM.PutParameter', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Sso/CHANGELOG.md b/src/Service/Sso/CHANGELOG.md index 5d11bc6e36..f36e07f7a6 100644 --- a/src/Service/Sso/CHANGELOG.md +++ b/src/Service/Sso/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.2.0 ### Added diff --git a/src/Service/Sso/src/Input/GetRoleCredentialsRequest.php b/src/Service/Sso/src/Input/GetRoleCredentialsRequest.php index f69b4f880e..2112a0c530 100644 --- a/src/Service/Sso/src/Input/GetRoleCredentialsRequest.php +++ b/src/Service/Sso/src/Input/GetRoleCredentialsRequest.php @@ -89,7 +89,10 @@ public function getRoleName(): ?string public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; if (null === $v = $this->accessToken) { throw new InvalidArgument(sprintf('Missing parameter "accessToken" for "%s". The value cannot be null.', __CLASS__)); } diff --git a/src/Service/StepFunctions/CHANGELOG.md b/src/Service/StepFunctions/CHANGELOG.md index ec034c837f..03a685b267 100644 --- a/src/Service/StepFunctions/CHANGELOG.md +++ b/src/Service/StepFunctions/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.2.2 ### Changed diff --git a/src/Service/StepFunctions/src/Input/SendTaskFailureInput.php b/src/Service/StepFunctions/src/Input/SendTaskFailureInput.php index c05625b40a..93f5f16aa6 100644 --- a/src/Service/StepFunctions/src/Input/SendTaskFailureInput.php +++ b/src/Service/StepFunctions/src/Input/SendTaskFailureInput.php @@ -88,6 +88,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AWSStepFunctions.SendTaskFailure', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/StepFunctions/src/Input/SendTaskHeartbeatInput.php b/src/Service/StepFunctions/src/Input/SendTaskHeartbeatInput.php index 8e94031b4c..a0c10bdb44 100644 --- a/src/Service/StepFunctions/src/Input/SendTaskHeartbeatInput.php +++ b/src/Service/StepFunctions/src/Input/SendTaskHeartbeatInput.php @@ -58,6 +58,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AWSStepFunctions.SendTaskHeartbeat', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/StepFunctions/src/Input/SendTaskSuccessInput.php b/src/Service/StepFunctions/src/Input/SendTaskSuccessInput.php index 5ac24e524c..da65b46037 100644 --- a/src/Service/StepFunctions/src/Input/SendTaskSuccessInput.php +++ b/src/Service/StepFunctions/src/Input/SendTaskSuccessInput.php @@ -76,6 +76,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AWSStepFunctions.SendTaskSuccess', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/StepFunctions/src/Input/StartExecutionInput.php b/src/Service/StepFunctions/src/Input/StartExecutionInput.php index b71de01518..5c5efd4bc5 100644 --- a/src/Service/StepFunctions/src/Input/StartExecutionInput.php +++ b/src/Service/StepFunctions/src/Input/StartExecutionInput.php @@ -147,6 +147,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AWSStepFunctions.StartExecution', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/StepFunctions/src/Input/StopExecutionInput.php b/src/Service/StepFunctions/src/Input/StopExecutionInput.php index 433fc24e33..f81cc71cf4 100644 --- a/src/Service/StepFunctions/src/Input/StopExecutionInput.php +++ b/src/Service/StepFunctions/src/Input/StopExecutionInput.php @@ -85,6 +85,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'AWSStepFunctions.StopExecution', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/TimestreamQuery/CHANGELOG.md b/src/Service/TimestreamQuery/CHANGELOG.md index e5c50783c4..73824195fb 100644 --- a/src/Service/TimestreamQuery/CHANGELOG.md +++ b/src/Service/TimestreamQuery/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 2.0.2 ### Changed diff --git a/src/Service/TimestreamQuery/src/Input/CancelQueryRequest.php b/src/Service/TimestreamQuery/src/Input/CancelQueryRequest.php index d6ad545c40..d8433cf3d9 100644 --- a/src/Service/TimestreamQuery/src/Input/CancelQueryRequest.php +++ b/src/Service/TimestreamQuery/src/Input/CancelQueryRequest.php @@ -55,6 +55,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'Timestream_20181101.CancelQuery', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/TimestreamQuery/src/Input/DescribeEndpointsRequest.php b/src/Service/TimestreamQuery/src/Input/DescribeEndpointsRequest.php index b59c5493f0..3148cd68d8 100644 --- a/src/Service/TimestreamQuery/src/Input/DescribeEndpointsRequest.php +++ b/src/Service/TimestreamQuery/src/Input/DescribeEndpointsRequest.php @@ -37,6 +37,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'Timestream_20181101.DescribeEndpoints', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/TimestreamQuery/src/Input/PrepareQueryRequest.php b/src/Service/TimestreamQuery/src/Input/PrepareQueryRequest.php index f758872543..aa37799f49 100644 --- a/src/Service/TimestreamQuery/src/Input/PrepareQueryRequest.php +++ b/src/Service/TimestreamQuery/src/Input/PrepareQueryRequest.php @@ -72,6 +72,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'Timestream_20181101.PrepareQuery', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/TimestreamQuery/src/Input/QueryRequest.php b/src/Service/TimestreamQuery/src/Input/QueryRequest.php index c1377e5c0e..874a2bfcf2 100644 --- a/src/Service/TimestreamQuery/src/Input/QueryRequest.php +++ b/src/Service/TimestreamQuery/src/Input/QueryRequest.php @@ -139,6 +139,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'Timestream_20181101.Query', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/TimestreamWrite/CHANGELOG.md b/src/Service/TimestreamWrite/CHANGELOG.md index a25eb1603f..a8aeee581e 100644 --- a/src/Service/TimestreamWrite/CHANGELOG.md +++ b/src/Service/TimestreamWrite/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 2.0.2 ### Changed diff --git a/src/Service/TimestreamWrite/src/Input/DescribeEndpointsRequest.php b/src/Service/TimestreamWrite/src/Input/DescribeEndpointsRequest.php index 4732dd0c0e..11f3f6809c 100644 --- a/src/Service/TimestreamWrite/src/Input/DescribeEndpointsRequest.php +++ b/src/Service/TimestreamWrite/src/Input/DescribeEndpointsRequest.php @@ -37,6 +37,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'Timestream_20181101.DescribeEndpoints', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/TimestreamWrite/src/Input/WriteRecordsRequest.php b/src/Service/TimestreamWrite/src/Input/WriteRecordsRequest.php index d9fc9b73dc..4431bfcca3 100644 --- a/src/Service/TimestreamWrite/src/Input/WriteRecordsRequest.php +++ b/src/Service/TimestreamWrite/src/Input/WriteRecordsRequest.php @@ -113,6 +113,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.0', 'X-Amz-Target' => 'Timestream_20181101.WriteRecords', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/Translate/CHANGELOG.md b/src/Service/Translate/CHANGELOG.md index f548615c19..15a30f722d 100644 --- a/src/Service/Translate/CHANGELOG.md +++ b/src/Service/Translate/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.0.1 ### Changed diff --git a/src/Service/Translate/src/Input/TranslateTextRequest.php b/src/Service/Translate/src/Input/TranslateTextRequest.php index 79c5d55c8a..f9af28eed8 100644 --- a/src/Service/Translate/src/Input/TranslateTextRequest.php +++ b/src/Service/Translate/src/Input/TranslateTextRequest.php @@ -152,6 +152,7 @@ public function request(): Request $headers = [ 'Content-Type' => 'application/x-amz-json-1.1', 'X-Amz-Target' => 'AWSShineFrontendService_20170701.TranslateText', + 'Accept' => 'application/json', ]; // Prepare query diff --git a/src/Service/XRay/CHANGELOG.md b/src/Service/XRay/CHANGELOG.md index a041193513..381534c1bd 100644 --- a/src/Service/XRay/CHANGELOG.md +++ b/src/Service/XRay/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers + ## 1.1.0 ### Added diff --git a/src/Service/XRay/src/Input/PutTraceSegmentsRequest.php b/src/Service/XRay/src/Input/PutTraceSegmentsRequest.php index f392ec1dd6..90bef1f3b9 100644 --- a/src/Service/XRay/src/Input/PutTraceSegmentsRequest.php +++ b/src/Service/XRay/src/Input/PutTraceSegmentsRequest.php @@ -55,7 +55,10 @@ public function getTraceSegmentDocuments(): array public function request(): Request { // Prepare headers - $headers = ['content-type' => 'application/json']; + $headers = [ + 'Content-Type' => 'application/json', + 'Accept' => 'application/json', + ]; // Prepare query $query = [];