Accept more content types when making AP requests

This commit is contained in:
Bat
2018-07-18 16:25:02 +02:00
parent e3a7eadb78
commit 3d436c10b1
4 changed files with 7 additions and 5 deletions
+1
View File
@@ -17,6 +17,7 @@ pub mod sign;
pub const CONTEXT_URL: &'static str = "https://www.w3.org/ns/activitystreams";
pub const PUBLIC_VISIBILTY: &'static str = "https://www.w3.org/ns/activitystreams#Public";
pub const AP_ACCEPT_HEADER: &'static str = "application/ld+json; profile=\"https://w3.org/ns/activitystreams\", application/ld+json;profile=\"https://w3.org/ns/activitystreams\", application/activity+json, application/ld+json";
pub fn context() -> serde_json::Value {
json!([