Merge pull request #7 from meeuw/master
Disable HTTP 1.1 connection keep-alive
This commit is contained in:
@@ -234,6 +234,7 @@ class PHPStreamTransport implements Transporter {
|
||||
*/
|
||||
protected function buildStreamContext($method, $headers, $body) {
|
||||
// Construct the stream options.
|
||||
$headers['Connection'] = 'close';
|
||||
$config = array(
|
||||
'http' => array(
|
||||
'protocol_version' => $this->httpVersion,
|
||||
|
||||
Reference in New Issue
Block a user