Merge pull request #7 from meeuw/master

Disable HTTP 1.1 connection keep-alive
This commit is contained in:
Matt Butcher
2013-04-12 12:18:35 -07:00

View File

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