1
0
Fork 0
forked from blallo/rss-bridge

Set “Accept-Encoding: gzip” header

This commit is contained in:
Daniel Aleksandersen 2016-12-12 11:29:34 +01:00 committed by GitHub
parent b4e6c0d973
commit 278d6a0ec2

View file

@ -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'
)
);