From: Felix Date: Thu, 23 Apr 2020 11:42:09 +0000 (+0200) Subject: Also use correct header in fetcher.rs X-Git-Url: http://these/git/%7B%60https:/readmes/static/%7B%60/feeds/%7BimageUploadUrl%7D?a=commitdiff_plain;h=b8aaf5c1f175e0a68ee823e352b2608f5cef28dd;p=lemmy.git Also use correct header in fetcher.rs --- diff --git a/server/src/apub/fetcher.rs b/server/src/apub/fetcher.rs index ed98434b..71453a2a 100644 --- a/server/src/apub/fetcher.rs +++ b/server/src/apub/fetcher.rs @@ -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(())?