1
0
Prechádzať zdrojové kódy

Set “Accept-Encoding: gzip” header

Daniel Aleksandersen 7 rokov pred
rodič
commit
278d6a0ec2
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      lib/contents.php

+ 2 - 1
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'
 		)
 	);