diff options
author | Mario Vavti <mario@mariovavti.com> | 2017-11-30 08:54:15 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2017-11-30 08:54:15 +0100 |
commit | 6b327f9f4c14e0e83af45d81cc3d965dddb34f21 (patch) | |
tree | c77109346bcee3dae4c0976b739ba7b4077fe789 /include | |
parent | aa7f6111a69e8b25901b5e2c8f4c4828551316a9 (diff) | |
parent | 6a4050cc9386effc86d2b0279c33ae1a1925a5ab (diff) | |
download | volse-hubzilla-6b327f9f4c14e0e83af45d81cc3d965dddb34f21.tar.gz volse-hubzilla-6b327f9f4c14e0e83af45d81cc3d965dddb34f21.tar.bz2 volse-hubzilla-6b327f9f4c14e0e83af45d81cc3d965dddb34f21.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include')
-rw-r--r-- | include/import.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/import.php b/include/import.php index 702fa7e54..8cab16342 100644 --- a/include/import.php +++ b/include/import.php @@ -1199,7 +1199,14 @@ function sync_files($channel, $files) { continue; } $redirects = 0; - $x = z_post_url($fetch_url,$parr,$redirects,array('filep' => $fp)); + + + $headers = []; + $headers['Accept'] = 'application/x-zot+json' ; + $headers['Sigtoken'] = random_string(); + $headers = \Zotlabs\Web\HTTPSig::create_sig('',$headers,$channel['channel_prvkey'], 'acct:' . $channel['channel_address'] . '@' . \App::get_hostname(),false,true,'sha512'); + + $x = z_post_url($fetch_url,$parr,$redirects,[ 'filep' => $fp, 'headers' => $headers]); fclose($fp); if($x['success']) { |