Skip to content

Commit fb43c81

Browse files
committed
Use default protocol if unspecified. Fixes #2383
1 parent f210c22 commit fb43c81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ public function sendHeaders()
716716
}
717717

718718
// HTTP Status
719-
header(sprintf('HTTP/%s %s %s', $this->protocolVersion, $this->statusCode, $this->reason), true, $this->statusCode);
719+
header(sprintf('HTTP/%s %s %s', $this->getProtocolVersion(), $this->statusCode, $this->reason), true, $this->statusCode);
720720

721721
// Send all of our headers
722722
foreach ($this->getHeaders() as $name => $values)

0 commit comments

Comments
 (0)