mirror of
https://github.com/mrclay/minify.git
synced 2025-03-14 09:29:38 +01:00
Merge pull request #42 from glensc/cc-connection-close
use "Connection: close" of file_get_contents
This commit is contained in:
commit
35cddbf5eb
@ -69,7 +69,7 @@ class Minify_JS_ClosureCompiler {
|
|||||||
}
|
}
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected $_fallbackFunc = null;
|
protected $_fallbackFunc = null;
|
||||||
|
|
||||||
protected function _getResponse($postBody)
|
protected function _getResponse($postBody)
|
||||||
@ -79,7 +79,7 @@ class Minify_JS_ClosureCompiler {
|
|||||||
$contents = file_get_contents(self::URL, false, stream_context_create(array(
|
$contents = file_get_contents(self::URL, false, stream_context_create(array(
|
||||||
'http' => array(
|
'http' => array(
|
||||||
'method' => 'POST',
|
'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,
|
'content' => $postBody,
|
||||||
'max_redirects' => 0,
|
'max_redirects' => 0,
|
||||||
'timeout' => 15,
|
'timeout' => 15,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user