From 069cb0b96756e2d2562868aa898f87499d031345 Mon Sep 17 00:00:00 2001 From: mroloux Date: Thu, 8 Feb 2018 10:02:36 +0100 Subject: [PATCH] Responses are GZIPed --- src/SeatsioClient.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SeatsioClient.php b/src/SeatsioClient.php index bab4970..37fc10c 100644 --- a/src/SeatsioClient.php +++ b/src/SeatsioClient.php @@ -22,7 +22,8 @@ public function __construct($secretKey, $baseUrl = 'https://api.seats.io/') 'base_uri' => $baseUrl, 'auth' => [$secretKey, null], 'http_errors' => false, - 'handler' => $stack + 'handler' => $stack, + 'headers' => ['Accept-Encoding' => 'gzip'] ]); }