Skip to content

Commit

Permalink
Merge pull request #16 from productsupcom/enable-compression-for-prod…
Browse files Browse the repository at this point in the history
…uct-upload-only

Disable compression for all, enable for product upload only
  • Loading branch information
plehatron authored Sep 10, 2021
2 parents 9f7836a + 9143fb8 commit eb07457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Productsup/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Request

public $queryParams = array();

public $allowCompression = true;
public $allowCompression = false;

private $_Client;

Expand Down
1 change: 1 addition & 0 deletions lib/Productsup/Service/ProductData.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ private function _submit() {
$this->createBatchId();
$this->didSubmit = true;
$request = $this->getRequest();
$request->allowCompression = true;
$request->method = Request::METHOD_POST;
$request->url .= '/upload';
$request->postBody = $this->_productData;
Expand Down

0 comments on commit eb07457

Please sign in to comment.