1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-26 11:59:02 +02:00

fetch_file_contents: use http/1.1 when not using curl

This commit is contained in:
Andrew Dolgov 2015-08-12 21:51:02 +03:00
parent 9109e171ee
commit 45913edda0

View File

@ -448,10 +448,15 @@
$context = stream_context_create(array(
'http' => array(
'method' => 'GET',
'protocol_version'=> 1.1,
'header' => "If-Modified-Since: ".gmdate("D, d M Y H:i:s \\G\\M\\T\r\n", $timestamp)
)));
} else {
$context = NULL;
$context = stream_context_create(array(
'http' => array(
'method' => 'GET',
'protocol_version'=> 1.1
)));
}
$old_error = error_get_last();