diff options
author | Mario <mario@mariovavti.com> | 2021-02-01 09:30:22 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-02-01 09:30:22 +0000 |
commit | 197338a72708624eda2a704b5abff4f5695ed7fe (patch) | |
tree | 5a6d05b0471039f3a4e3bcc20cb1053bf396b187 /Zotlabs/Lib | |
parent | 61e7791d31a141dbcbe126fae1466d7efceabac0 (diff) | |
download | volse-hubzilla-197338a72708624eda2a704b5abff4f5695ed7fe.tar.gz volse-hubzilla-197338a72708624eda2a704b5abff4f5695ed7fe.tar.bz2 volse-hubzilla-197338a72708624eda2a704b5abff4f5695ed7fe.zip |
remove logging
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/ZotURL.php | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Zotlabs/Lib/ZotURL.php b/Zotlabs/Lib/ZotURL.php index fa3959f69..6bb01fd7a 100644 --- a/Zotlabs/Lib/ZotURL.php +++ b/Zotlabs/Lib/ZotURL.php @@ -21,12 +21,10 @@ class ZotURL { } $portable_url = substr($url,6); - $u = explode('/',$portable_url); + $u = explode('/',$portable_url); $portable_id = $u[0]; - hz_syslog(print_r($u,true)); - $hosts = self::lookup($portable_id); - hz_syslog(print_r($hosts,true)); + if(! $hosts) { return $ret; } @@ -40,8 +38,8 @@ class ZotURL { if($channel && $m) { - $headers = [ - 'Accept' => 'application/x-zot+json', + $headers = [ + 'Accept' => 'application/x-zot+json', 'Content-Type' => 'application/x-zot+json', 'X-Zot-Token' => random_string(), 'Digest' => HTTPSig::generate_digest_header($data), @@ -51,9 +49,9 @@ class ZotURL { $h = HTTPSig::create_sig($headers,$channel['channel_prvkey'],channel_url($channel),false); } else { - $h = [ 'Accept: application/x-zot+json' ]; + $h = [ 'Accept: application/x-zot+json' ]; } - + $result = []; $redirects = 0; |