Skip to content

Commit

Permalink
DOT-4440: We added content-type: json (#9)
Browse files Browse the repository at this point in the history
* DOT-4440: Fix a bug when we get data by transaction ID

* DOT-4440: code review 1

* DOT-4440: code review 2

* DOT-4440: We send data as a form of a URL encoded string

* DOT-4440: we added content-type: json
  • Loading branch information
Mohamed Oussama EL ABBASSI authored Nov 8, 2021
1 parent de8bc90 commit 87f7b18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/API/HTTPAdapter/CurlHTTPAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ protected function parseHeaders($headers)

public function request(string $method, string $endpoint, array $params = [], array $headers = []): Response
{
$headers["content-type"] = "application/json";
$headers["Accept"] = "application/json";
$method = strtolower($method);

Expand Down

0 comments on commit 87f7b18

Please sign in to comment.