diff options
author | Mario <mario@mariovavti.com> | 2022-02-13 18:58:12 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-13 18:58:12 +0000 |
commit | a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa (patch) | |
tree | 048628b0da961a7cfda32dce7ed3572875e22907 /Zotlabs/Web | |
parent | 4b06bc552f04fc78545a450343cc59e236791a66 (diff) | |
download | volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.gz volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.bz2 volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.zip |
address deprecation warnings
Diffstat (limited to 'Zotlabs/Web')
-rw-r--r-- | Zotlabs/Web/HTTPSig.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php index a7a59b8cf..660fdc4ce 100644 --- a/Zotlabs/Web/HTTPSig.php +++ b/Zotlabs/Web/HTTPSig.php @@ -528,11 +528,14 @@ class HTTPSig { if ($head) { foreach ($head as $k => $v) { - $headers .= strtolower($k) . ': ' . trim($v) . "\n"; + $k = strtolower($k); + $v = (($v) ? trim($v) : ''); + + $headers .= $k . ': ' . $v . "\n"; if ($fields) $fields .= ' '; - $fields .= strtolower($k); + $fields .= $k; } // strip the trailing linefeed $headers = rtrim($headers, "\n"); |