From 9143fb8cbf234d61fcbcdb5d62828f810ef1927f Mon Sep 17 00:00:00 2001 From: Davor Plehati Date: Tue, 27 Jul 2021 13:26:56 +0200 Subject: [PATCH] Disable compression for all, enable for product upload only Relates to ACC-7761 --- lib/Productsup/Http/Request.php | 2 +- lib/Productsup/Service/ProductData.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Productsup/Http/Request.php b/lib/Productsup/Http/Request.php index 44cdbb0..a8d5e07 100644 --- a/lib/Productsup/Http/Request.php +++ b/lib/Productsup/Http/Request.php @@ -17,7 +17,7 @@ class Request public $queryParams = array(); - public $allowCompression = true; + public $allowCompression = false; private $_Client; diff --git a/lib/Productsup/Service/ProductData.php b/lib/Productsup/Service/ProductData.php index 73ee631..87014df 100644 --- a/lib/Productsup/Service/ProductData.php +++ b/lib/Productsup/Service/ProductData.php @@ -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;