From 1b1c2e229d67ccc73faef000b3dd46b7c7db7e2e Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 23 Apr 2020 13:42:09 +0200 Subject: [PATCH] Also use correct header in fetcher.rs --- server/src/apub/fetcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/apub/fetcher.rs b/server/src/apub/fetcher.rs index ed98434b4..71453a2a4 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(())?