Compare commits

..

2 commits

4 changed files with 5 additions and 4 deletions

View file

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

View file

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

View file

@ -139,8 +139,9 @@ impl HostMetaDocument {
let mime_type = extract_mime_from_content_type(content_type)
.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" {
log::error!("MIME type `{mime_type}` is not acceptable for XRD parsing.");
return Err(ContentTypeInvalid)
}

View file

@ -28,7 +28,7 @@ macro_rules! test {
};
($id:ident, $url:literal, $($tag:meta),*) => {
mod $id {
use acrate_nodeinfo::*;
use acrate_hostmeta::*;
use super::*;
#[tokio::test]