Compare commits
No commits in common. "a9369861986e542dee095c7e555820adbb5184c4" and "3cfc86a8fd60892da6dda03ac6b09bfa3f8c34ca" have entirely different histories.
a936986198
...
3cfc86a8fd
4 changed files with 4 additions and 5 deletions
|
@ -1,3 +1,3 @@
|
|||
[workspace]
|
||||
resolver = "2"
|
||||
members = ["acrate-core", "acrate-hostmeta"]
|
||||
members = ["acrate-core", "acrate-nodeinfo"]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "acrate-hostmeta"
|
||||
name = "acrate-nodeinfo"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
|
@ -139,9 +139,8 @@ impl HostMetaDocument {
|
|||
let mime_type = extract_mime_from_content_type(content_type)
|
||||
.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" {
|
||||
log::error!("MIME type `{mime_type}` is not acceptable for XRD parsing.");
|
||||
return Err(ContentTypeInvalid)
|
||||
}
|
||||
|
|
@ -28,7 +28,7 @@ macro_rules! test {
|
|||
};
|
||||
($id:ident, $url:literal, $($tag:meta),*) => {
|
||||
mod $id {
|
||||
use acrate_hostmeta::*;
|
||||
use acrate_nodeinfo::*;
|
||||
use super::*;
|
||||
|
||||
#[tokio::test]
|
Loading…
Reference in a new issue