Compare commits

..

No commits in common. "a9369861986e542dee095c7e555820adbb5184c4" and "3cfc86a8fd60892da6dda03ac6b09bfa3f8c34ca" have entirely different histories.

4 changed files with 4 additions and 5 deletions

View file

@ -1,3 +1,3 @@
[workspace] [workspace]
resolver = "2" resolver = "2"
members = ["acrate-core", "acrate-hostmeta"] members = ["acrate-core", "acrate-nodeinfo"]

View file

@ -1,5 +1,5 @@
[package] [package]
name = "acrate-hostmeta" name = "acrate-nodeinfo"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"

View file

@ -139,9 +139,8 @@ 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 is acceptable for XRD parsing..."); log::trace!("Ensuring MIME type of `{mime_type}` is acceptable for JRD 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)
} }

View file

@ -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_hostmeta::*; use acrate_nodeinfo::*;
use super::*; use super::*;
#[tokio::test] #[tokio::test]