Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit 07250d1

Browse files
committed
Change the http version from 1.0 to 1.1 in PHP
Without this, on one of my setup, upgrading from Apache 2.2 to Apache 2.4 would make the request for the JS asset hang.
1 parent 717910d commit 07250d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/php/Genghis/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function getStatusText($status)
5050

5151
protected function renderHeaders()
5252
{
53-
header(sprintf('HTTP/1.0 %s %s', $this->status, self::$statusCodes[$this->status]));
53+
header(sprintf('HTTP/1.1 %s %s', $this->status, self::$statusCodes[$this->status]));
5454
foreach ($this->headers as $name => $val) {
5555
header(sprintf('%s: %s', $name, $val));
5656
}

0 commit comments

Comments
 (0)