diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-10-10 13:33:15 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-10-10 13:33:15 +0200 |
commit | d2e366a46fbdb40c7c6704b3a7f55ad235c93bf3 (patch) | |
tree | f815c87d37bdbb7f8a8ee0a7bc2f0074bd8ed1bc /Zotlabs/Zot/Finger.php | |
parent | c06b37b798d604a8e5768b8c9b52422b4b34ae36 (diff) | |
parent | c6f3298f7864756f4a9b7827e8490a3ee859f82f (diff) | |
download | volse-hubzilla-d2e366a46fbdb40c7c6704b3a7f55ad235c93bf3.tar.gz volse-hubzilla-d2e366a46fbdb40c7c6704b3a7f55ad235c93bf3.tar.bz2 volse-hubzilla-d2e366a46fbdb40c7c6704b3a7f55ad235c93bf3.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'Zotlabs/Zot/Finger.php')
-rw-r--r-- | Zotlabs/Zot/Finger.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Zotlabs/Zot/Finger.php b/Zotlabs/Zot/Finger.php index 559f9657a..1d20f5822 100644 --- a/Zotlabs/Zot/Finger.php +++ b/Zotlabs/Zot/Finger.php @@ -71,6 +71,11 @@ class Finger { $url = 'https://' . $host; } + $m = parse_url($url); + if($m) { + $parsed_host = strtolower($m['host']); + } + $rhs = '/.well-known/zot-info'; $https = ((strpos($url,'https://') === 0) ? true : false); @@ -88,6 +93,8 @@ class Finger { $headers = []; $headers['X-Zot-Channel'] = $channel['channel_address'] . '@' . \App::get_hostname(); $headers['X-Zot-Nonce'] = random_string(); + $headers['Host'] = $parsed['host']; + $xhead = \Zotlabs\Web\HTTPSig::create_sig('',$headers,$channel['channel_prvkey'], 'acct:' . $channel['channel_address'] . '@' . \App::get_hostname(),false); |