Set Content-Type for ActivityPub request to correct value. (#315)

This commit is contained in:
KokaKiwi
2018-11-23 13:18:33 +01:00
committed by fdb-hiroshima
parent 67fe28177e
commit 100f6307a7
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -17,6 +17,8 @@ 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_CONTENT_TYPE: &'static str = r#"application/ld+json; profile="https://www.w3.org/ns/activitystreams""#;
pub fn ap_accept_header() -> Vec<&'static str> {
vec![
"application/ld+json; profile=\"https://w3.org/ns/activitystreams\"",