Skip to content

Commit

Permalink
Merge pull request #190 from simoor/patch-1
Browse files Browse the repository at this point in the history
Improved Performance of processResponse
  • Loading branch information
claudiosanches committed Apr 17, 2018
2 parents 2b70bec + 939203f commit c107128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WooCommerce/HttpClient/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ protected function processResponse()
{
$body = $this->response->getBody();

if (0 === strpos(bin2hex($body), 'efbbbf')) {
if (0 === strpos(bin2hex(substr($body, 0, 4)), 'efbbbf')) {
$body = substr($body, 3);
}

Expand Down

0 comments on commit c107128

Please sign in to comment.