Skip to content

Commit

Permalink
Fix HTTP options
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Jan 23, 2021
1 parent 28ced5a commit 20d8f3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EnvatoApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getVersion(int $itemId): string
{
$response = $this->httpDownloader->get(
self::API_BASE_URL . '/market/catalog/item-version?' . \http_build_query(['id' => $itemId]),
['header' => ['Authorization: Bearer ' . $this->token]]
['http' => ['header' => ['Authorization: Bearer ' . $this->token]]]
);

// TODO HTTP 429 response. Included in this response is a HTTP header Retry-After
Expand All @@ -57,7 +57,7 @@ public function getDownloadUrl(int $itemId): string
{
$response = $this->httpDownloader->get(
self::API_BASE_URL . '/market/buyer/download?' . \http_build_query(['item_id' => $itemId]),
['header' => ['Authorization: Bearer ' . $this->token]]
['http' => ['header' => ['Authorization: Bearer ' . $this->token]]]
);

// TODO HTTP 429 response. Included in this response is a HTTP header Retry-After
Expand Down

0 comments on commit 20d8f3a

Please sign in to comment.