]> Untitled Git - lemmy.git/commitdiff
Also use correct header in fetcher.rs
authorFelix <me@nutomic.com>
Thu, 23 Apr 2020 11:42:09 +0000 (13:42 +0200)
committerFelix <me@nutomic.com>
Thu, 23 Apr 2020 11:42:09 +0000 (13:42 +0200)
server/src/apub/fetcher.rs

index ed98434b453314f31c8f688b82d54b3bd7eec6c9..71453a2a493954d9b3cb22c24816e0a7ca7439f0 100644 (file)
@@ -73,7 +73,7 @@ where
   // TODO: this function should return a future
   let timeout = Duration::from_secs(60);
   let text = Request::get(url.as_str())
-    .header("Content-Type", APUB_JSON_CONTENT_TYPE)
+    .header("Accept", APUB_JSON_CONTENT_TYPE)
     .connect_timeout(timeout)
     .timeout(timeout)
     .body(())?