Skip to content

Commit 6b93add

Browse files
authored
Merge pull request #2572 from MGatner/default-protocol
Use default protocol if unspecified
2 parents f210c22 + fb43c81 commit 6b93add

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)