aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web/HTTPSig.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-13 18:58:12 +0000
committerMario <mario@mariovavti.com>2022-02-13 18:58:12 +0000
commita7ec1805e3f5836641503d1f8cb6ccc1d8c885fa (patch)
tree048628b0da961a7cfda32dce7ed3572875e22907 /Zotlabs/Web/HTTPSig.php
parent4b06bc552f04fc78545a450343cc59e236791a66 (diff)
downloadvolse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.gz
volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.tar.bz2
volse-hubzilla-a7ec1805e3f5836641503d1f8cb6ccc1d8c885fa.zip
address deprecation warnings
Diffstat (limited to 'Zotlabs/Web/HTTPSig.php')
-rw-r--r--Zotlabs/Web/HTTPSig.php7
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");