aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Magic.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-05-26 10:17:53 +0000
committerMario <mario@mariovavti.com>2023-05-26 10:17:53 +0000
commit904401617a4f4ea866668bcedd6a1f52c60d9ee0 (patch)
treeb7769bbed9c00ce91eecf788dbff14f2a7b08194 /Zotlabs/Module/Magic.php
parent02089f15c46248937389d63dcef31a44b21644f2 (diff)
downloadvolse-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
Diffstat (limited to 'Zotlabs/Module/Magic.php')
-rw-r--r--Zotlabs/Module/Magic.php6
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);