nodeinfo
: Use header names from reqwest::header
This commit is contained in:
parent
707d6d3d54
commit
de5fdf26f3
1 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ impl HostMetaDocument {
|
|||
log::trace!("Checking headers of the response...");
|
||||
response
|
||||
.headers()
|
||||
.get("Content-Type")
|
||||
.get(reqwest::header::CONTENT_TYPE)
|
||||
.ok_or(ContentTypeMissing)?
|
||||
.eq("application/json")
|
||||
.then_some(())
|
||||
|
@ -110,7 +110,7 @@ impl HostMetaDocument {
|
|||
log::trace!("Checking headers of the response...");
|
||||
response
|
||||
.headers()
|
||||
.get("Content-Type")
|
||||
.get(reqwest::header::CONTENT_TYPE)
|
||||
.ok_or(ContentTypeMissing)?
|
||||
.eq("application/xrd+json")
|
||||
.then_some(())
|
||||
|
|
Loading…
Reference in a new issue