Merge pull request #445 from da2x/patch-1
Set “Accept-Encoding: gzip” header
This commit is contained in:
commit
cad78be37b
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ function getContents($url
|
||||||
){
|
){
|
||||||
$contextOptions = array(
|
$contextOptions = array(
|
||||||
'http' => array(
|
'http' => array(
|
||||||
'user_agent' => ini_get('user_agent')
|
'user_agent' => ini_get('user_agent'),
|
||||||
|
'accept_encoding' => 'gzip'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue