aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2019-01-02 22:41:03 +0100
committerMario Vavti <mario@mariovavti.com>2019-01-02 22:41:03 +0100
commitdbd230da7407ac70483c004bc82f4b8619c42760 (patch)
tree14e016f85e6a8466a2dfcdbeadaab0adb8cff153 /vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php
parenta19563e1396cb882063db3ce3f355b2db48175e9 (diff)
downloadvolse-hubzilla-dbd230da7407ac70483c004bc82f4b8619c42760.tar.gz
volse-hubzilla-dbd230da7407ac70483c004bc82f4b8619c42760.tar.bz2
volse-hubzilla-dbd230da7407ac70483c004bc82f4b8619c42760.zip
update composer libs
Diffstat (limited to 'vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php')
-rw-r--r--vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php b/vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php
index c96cb972f..f547bf6e8 100644
--- a/vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php
+++ b/vendor/bshaffer/oauth2-server-php/src/OAuth2/Request.php
@@ -64,7 +64,12 @@ class Request implements RequestInterface
$this->files = $files;
$this->server = $server;
$this->content = $content;
- $this->headers = is_null($headers) ? $this->getHeadersFromServer($this->server) : $headers;
+
+ if ($headers === null) {
+ $headers = array();
+ }
+
+ $this->headers = $headers + $this->getHeadersFromServer($this->server);
}
/**