[ticket/11619] Use HTTP/1.0 because of lack of chunked-encoding handling.

PHPBB3-11619
This commit is contained in:
Andreas Fischer 2013-07-03 15:31:40 +02:00
parent 950a3a7d95
commit 9e845d4641

View file

@ -3121,7 +3121,7 @@ function get_remote_file($host, $directory, $filename, &$errstr, &$errno, $port
if ($fsock = @fsockopen($host, $port, $errno, $errstr, $timeout))
{
@fputs($fsock, "GET $directory/$filename HTTP/1.1\r\n");
@fputs($fsock, "GET $directory/$filename HTTP/1.0\r\n");
@fputs($fsock, "HOST: $host\r\n");
@fputs($fsock, "Connection: close\r\n\r\n");