1
0
mirror of https://github.com/mrclay/minify.git synced 2025-03-13 17:09:39 +01:00

Merge pull request #42 from glensc/cc-connection-close

use "Connection: close" of file_get_contents
This commit is contained in:
Steve Clay 2013-03-23 13:11:48 -07:00
commit 35cddbf5eb

View File

@ -69,7 +69,7 @@ class Minify_JS_ClosureCompiler {
}
return $response;
}
protected $_fallbackFunc = null;
protected function _getResponse($postBody)
@ -79,7 +79,7 @@ class Minify_JS_ClosureCompiler {
$contents = file_get_contents(self::URL, false, stream_context_create(array(
'http' => array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded',
'header' => "Content-type: application/x-www-form-urlencoded\r\nConnection: close\r\n",
'content' => $postBody,
'max_redirects' => 0,
'timeout' => 15,