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

Commit

Permalink
Change the http version from 1.0 to 1.1 in PHP
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arthurdarcet committed Sep 4, 2014
1 parent 717910d commit 07250d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/php/Genghis/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static function getStatusText($status)

protected function renderHeaders()
{
header(sprintf('HTTP/1.0 %s %s', $this->status, self::$statusCodes[$this->status]));
header(sprintf('HTTP/1.1 %s %s', $this->status, self::$statusCodes[$this->status]));
foreach ($this->headers as $name => $val) {
header(sprintf('%s: %s', $name, $val));
}
Expand Down

0 comments on commit 07250d1

Please sign in to comment.