Skip to content

Commit eb07457

Browse files
authored
Merge pull request #16 from productsupcom/enable-compression-for-product-upload-only
Disable compression for all, enable for product upload only
2 parents 9f7836a + 9143fb8 commit eb07457

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/Productsup/Http/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Request
1717

1818
public $queryParams = array();
1919

20-
public $allowCompression = true;
20+
public $allowCompression = false;
2121

2222
private $_Client;
2323

lib/Productsup/Service/ProductData.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ private function _submit() {
254254
$this->createBatchId();
255255
$this->didSubmit = true;
256256
$request = $this->getRequest();
257+
$request->allowCompression = true;
257258
$request->method = Request::METHOD_POST;
258259
$request->url .= '/upload';
259260
$request->postBody = $this->_productData;

0 commit comments

Comments
 (0)