Also use correct header in fetcher.rs
This commit is contained in:
parent
3162cb580e
commit
1b1c2e229d
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ where
|
||||||
// TODO: this function should return a future
|
// TODO: this function should return a future
|
||||||
let timeout = Duration::from_secs(60);
|
let timeout = Duration::from_secs(60);
|
||||||
let text = Request::get(url.as_str())
|
let text = Request::get(url.as_str())
|
||||||
.header("Content-Type", APUB_JSON_CONTENT_TYPE)
|
.header("Accept", APUB_JSON_CONTENT_TYPE)
|
||||||
.connect_timeout(timeout)
|
.connect_timeout(timeout)
|
||||||
.timeout(timeout)
|
.timeout(timeout)
|
||||||
.body(())?
|
.body(())?
|
||||||
|
|
Loading…
Reference in a new issue