Skip to content

Commit 3c6f193

Browse files
authored
Fixed bug to retrieve PDF shipment label (#65)
1 parent 1d26818 commit 3c6f193

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Endpoints/BaseEndpoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function performApiCall(string $httpMethod, string $apiMethod, ?string
5656
$this->getRequestHeaders($requestHeaders)
5757
);
5858

59-
if (collect($response->getHeader('Content-Type'))->first() == 'application/octet-stream') {
59+
if (collect($response->getHeader('Content-Type'))->first() == 'application/pdf') {
6060
return $response->getBody()->getContents();
6161
}
6262

0 commit comments

Comments
 (0)