From 278d6a0ec2c379fddd83ef10f849703006e22db8 Mon Sep 17 00:00:00 2001 From: Daniel Aleksandersen Date: Mon, 12 Dec 2016 11:29:34 +0100 Subject: [PATCH] =?UTF-8?q?Set=20=E2=80=9CAccept-Encoding:=20gzip=E2=80=9D?= =?UTF-8?q?=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/contents.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/contents.php b/lib/contents.php index 470efeb3..e8c43a9d 100644 --- a/lib/contents.php +++ b/lib/contents.php @@ -7,7 +7,8 @@ function getContents($url ){ $contextOptions = array( 'http' => array( - 'user_agent' => ini_get('user_agent') + 'user_agent' => ini_get('user_agent'), + 'accept_encoding' => 'gzip' ) );