Merge pull request #55241 from nextcloud/fix-request-protocol-empty-on-occ

pull/53447/merge
Thomas Citharel 2 weeks ago committed by GitHub
commit ded505a440
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      lib/private/AppFramework/Http/Request.php

@ -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…
Cancel
Save