mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #55241 from nextcloud/fix-request-protocol-empty-on-occ
This commit is contained in:
commit
ded505a440
1 changed files with 1 additions and 1 deletions
|
|
@ -676,7 +676,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
|||
* @return string HTTP protocol. HTTP/2, HTTP/1.1 or HTTP/1.0.
|
||||
*/
|
||||
public function getHttpProtocol(): string {
|
||||
$claimedProtocol = $this->server['SERVER_PROTOCOL'];
|
||||
$claimedProtocol = $this->server['SERVER_PROTOCOL'] ?? '';
|
||||
|
||||
if (\is_string($claimedProtocol)) {
|
||||
$claimedProtocol = strtoupper($claimedProtocol);
|
||||
|
|
|
|||
Loading…
Reference in a new issue