From 197338a72708624eda2a704b5abff4f5695ed7fe Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 1 Feb 2021 09:30:22 +0000 Subject: remove logging --- Zotlabs/Lib/ZotURL.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'Zotlabs') 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; -- cgit v1.2.3