Skip to content

Commit

Permalink
Ensure redirect responses have the correct HTTP version set. Fixes #931
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnieezell committed Feb 16, 2018
1 parent 0ff7c8c commit 1357d02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion system/Config/Services.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,10 @@ public static function redirectResponse(\Config\App $config = null, $getShared =
$config = new \Config\App();
}

return new \CodeIgniter\HTTP\RedirectResponse($config);
$response = new \CodeIgniter\HTTP\RedirectResponse($config);
$response->setProtocolVersion(self::request()->getProtocolVersion());

return $response;
}

//--------------------------------------------------------------------
Expand Down

0 comments on commit 1357d02

Please sign in to comment.