diff options
author | Mario <mario@mariovavti.com> | 2023-05-26 10:17:53 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-05-26 10:17:53 +0000 |
commit | 904401617a4f4ea866668bcedd6a1f52c60d9ee0 (patch) | |
tree | b7769bbed9c00ce91eecf788dbff14f2a7b08194 | |
parent | 02089f15c46248937389d63dcef31a44b21644f2 (diff) | |
download | volse-hubzilla-904401617a4f4ea866668bcedd6a1f52c60d9ee0.tar.gz volse-hubzilla-904401617a4f4ea866668bcedd6a1f52c60d9ee0.tar.bz2 volse-hubzilla-904401617a4f4ea866668bcedd6a1f52c60d9ee0.zip |
mod magic make a get request instead of post and remove digest header
-rw-r--r-- | Zotlabs/Module/Magic.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Magic.php b/Zotlabs/Module/Magic.php index 6d997c662..8259f7d39 100644 --- a/Zotlabs/Module/Magic.php +++ b/Zotlabs/Module/Magic.php @@ -105,13 +105,13 @@ class Magic extends Controller { $headers['Accept'] = 'application/x-zot+json' ; $headers['Content-Type'] = 'application/x-zot+json' ; $headers['X-Open-Web-Auth'] = random_string(); - $headers['Digest'] = HTTPSig::generate_digest_header($data); $headers['Host'] = $parsed['host']; - $headers['(request-target)'] = 'post ' . '/owa'; + $headers['(request-target)'] = 'get ' . '/owa'; $headers = HTTPSig::create_sig($headers,$channel['channel_prvkey'], channel_url($channel),true,'sha512'); $redirects = 0; - $x = z_post_url($owapath,$data,$redirects,[ 'headers' => $headers ]); + $x = z_fetch_url($owapath, false, $redirects, ['headers' => $headers]); + logger('owa fetch returned: ' . print_r($x,true),LOGGER_DATA); if ($x['success']) { $j = json_decode($x['body'],true); |