Skip to content

Commit c272f90

Browse files
authored
Add an accept header in JSON request to help 3rd party services like localstack (#1721)
1 parent 9096261 commit c272f90

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+44
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions

src/Input/GetCalculationExecutionRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function request(): Request
5555
$headers = [
5656
'Content-Type' => 'application/x-amz-json-1.1',
5757
'X-Amz-Target' => 'AmazonAthena.GetCalculationExecution',
58+
'Accept' => 'application/json',
5859
];
5960

6061
// Prepare query

src/Input/GetCalculationExecutionStatusRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function request(): Request
5555
$headers = [
5656
'Content-Type' => 'application/x-amz-json-1.1',
5757
'X-Amz-Target' => 'AmazonAthena.GetCalculationExecutionStatus',
58+
'Accept' => 'application/json',
5859
];
5960

6061
// Prepare query

src/Input/GetDataCatalogInput.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function request(): Request
7070
$headers = [
7171
'Content-Type' => 'application/x-amz-json-1.1',
7272
'X-Amz-Target' => 'AmazonAthena.GetDataCatalog',
73+
'Accept' => 'application/json',
7374
];
7475

7576
// Prepare query

src/Input/GetDatabaseInput.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public function request(): Request
8888
$headers = [
8989
'Content-Type' => 'application/x-amz-json-1.1',
9090
'X-Amz-Target' => 'AmazonAthena.GetDatabase',
91+
'Accept' => 'application/json',
9192
];
9293

9394
// Prepare query

src/Input/GetNamedQueryInput.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function request(): Request
5555
$headers = [
5656
'Content-Type' => 'application/x-amz-json-1.1',
5757
'X-Amz-Target' => 'AmazonAthena.GetNamedQuery',
58+
'Accept' => 'application/json',
5859
];
5960

6061
// Prepare query

src/Input/GetQueryExecutionInput.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function request(): Request
5555
$headers = [
5656
'Content-Type' => 'application/x-amz-json-1.1',
5757
'X-Amz-Target' => 'AmazonAthena.GetQueryExecution',
58+
'Accept' => 'application/json',
5859
];
5960

6061
// Prepare query

src/Input/GetQueryResultsInput.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public function request(): Request
8787
$headers = [
8888
'Content-Type' => 'application/x-amz-json-1.1',
8989
'X-Amz-Target' => 'AmazonAthena.GetQueryResults',
90+
'Accept' => 'application/json',
9091
];
9192

9293
// Prepare query

src/Input/GetSessionRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function request(): Request
5555
$headers = [
5656
'Content-Type' => 'application/x-amz-json-1.1',
5757
'X-Amz-Target' => 'AmazonAthena.GetSession',
58+
'Accept' => 'application/json',
5859
];
5960

6061
// Prepare query

src/Input/GetSessionStatusRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function request(): Request
5555
$headers = [
5656
'Content-Type' => 'application/x-amz-json-1.1',
5757
'X-Amz-Target' => 'AmazonAthena.GetSessionStatus',
58+
'Accept' => 'application/json',
5859
];
5960

6061
// Prepare query

0 commit comments

Comments
 (0)