Merge branch 'cherry-pick-3604220c' into 'dev'
add date and request target headers to make pixelfed happy See merge request hubzilla/core!1768
This commit is contained in:
		| @@ -87,8 +87,8 @@ class Activity { | |||||||
| 			$headers = [ | 			$headers = [ | ||||||
| 				'Accept'           => 'application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"', | 				'Accept'           => 'application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"', | ||||||
| 				'Host'             => $m['host'], | 				'Host'             => $m['host'], | ||||||
| 				'(request-target)' => 'get ' . get_request_string($url), | 				'Date'             => datetime_convert('UTC','UTC', 'now', 'D, d M Y h:i:s \\G\\M\\T'), | ||||||
| 				'Date'             => datetime_convert('UTC','UTC','now','D, d M Y H:i:s') . ' UTC' | 				'(request-target)' => 'get ' . get_request_string($url) | ||||||
| 			]; | 			]; | ||||||
| 			if (isset($token)) { | 			if (isset($token)) { | ||||||
| 				$headers['Authorization'] = 'Bearer ' . $token; | 				$headers['Authorization'] = 'Bearer ' . $token; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user