add all required accept header
This commit is contained in:
parent
0337b78fef
commit
55ca69fd22
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ function get_remote_metadata_by_actor( $actor ) {
|
||||||
'limit_response_size' => 1048576,
|
'limit_response_size' => 1048576,
|
||||||
'redirection' => 3,
|
'redirection' => 3,
|
||||||
'user-agent' => "$user_agent; ActivityPub",
|
'user-agent' => "$user_agent; ActivityPub",
|
||||||
'headers' => array( 'accept' => 'application/activity+json' ),
|
'headers' => array(
|
||||||
|
'accept' => 'application/activity+json, application/ld+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
$response = \wp_safe_remote_get( $actor, $args );
|
$response = \wp_safe_remote_get( $actor, $args );
|
||||||
|
|
Loading…
Reference in a new issue