Compare commits
2 commits
3cfc86a8fd
...
a936986198
Author | SHA1 | Date | |
---|---|---|---|
a936986198 | |||
c12b0a7869 |
4 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,3 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
members = ["acrate-core", "acrate-nodeinfo"]
|
members = ["acrate-core", "acrate-hostmeta"]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "acrate-nodeinfo"
|
name = "acrate-hostmeta"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
|
@ -139,8 +139,9 @@ impl HostMetaDocument {
|
||||||
let mime_type = extract_mime_from_content_type(content_type)
|
let mime_type = extract_mime_from_content_type(content_type)
|
||||||
.ok_or(ContentTypeInvalid)?;
|
.ok_or(ContentTypeInvalid)?;
|
||||||
|
|
||||||
log::trace!("Ensuring MIME type of `{mime_type}` is acceptable for JRD parsing...");
|
log::trace!("Ensuring MIME type is acceptable for XRD parsing...");
|
||||||
if mime_type != "application/xrd+xml" {
|
if mime_type != "application/xrd+xml" {
|
||||||
|
log::error!("MIME type `{mime_type}` is not acceptable for XRD parsing.");
|
||||||
return Err(ContentTypeInvalid)
|
return Err(ContentTypeInvalid)
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ macro_rules! test {
|
||||||
};
|
};
|
||||||
($id:ident, $url:literal, $($tag:meta),*) => {
|
($id:ident, $url:literal, $($tag:meta),*) => {
|
||||||
mod $id {
|
mod $id {
|
||||||
use acrate_nodeinfo::*;
|
use acrate_hostmeta::*;
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
Loading…
Reference in a new issue