]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Magic.php
Merge pull request #7193 from nupplaphil/bug/uimport_datetime
[friendica.git] / src / Module / Magic.php
index 51f501b853dbf4ceaf2fa45f153b17b5b32abe0a..491ed31cbd4a4bd0c24036ea45a398325d078251 100644 (file)
@@ -43,7 +43,7 @@ class Magic extends BaseModule
                }
 
                if (!$cid) {
-                       Logger::log('No contact record found: ' . print_r($_REQUEST, true), Logger::DEBUG);
+                       Logger::log('No contact record found: ' . json_encode($_REQUEST), Logger::DEBUG);
                        // @TODO Finding a more elegant possibility to redirect to either internal or external URL
                        $a->redirect($dest);
                }
@@ -74,7 +74,7 @@ class Magic extends BaseModule
                                $basepath = $exp[0];
 
                                $headers = [];
-                               $headers['Accept'] = 'application/x-dfrn+json';
+                               $headers['Accept'] = 'application/x-dfrn+json, application/x-zot+json';
                                $headers['X-Open-Web-Auth'] = Strings::getRandomHex();
 
                                // Create a header that is signed with the local users private key.