1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-09 07:36:56 +02: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

View File

@@ -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,