mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 06:36:14 +00:00
Also use correct header in fetcher.rs
This commit is contained in:
parent
70816a4779
commit
b8aaf5c1f1
|
@ -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(())?
|
||||
|
|
Loading…
Reference in a new issue