diff --git a/crates/naja-server/src/main.rs b/crates/naja-server/src/main.rs index 87da352..4e24ada 100644 --- a/crates/naja-server/src/main.rs +++ b/crates/naja-server/src/main.rs @@ -124,7 +124,7 @@ async fn post_request( data: String, content_type: web::Header, ) -> impl Responder { - if content_type.to_string().as_str() != "application/asp+jwt; charset=UTF-8" { + if content_type.to_string().as_str() != "application/asp+jwt; charset=utf-8" { return HttpResponse::BadRequest() .body("Content type header was not set to \"application/asp+jwt; charset=UTF-8\""); } @@ -135,7 +135,7 @@ async fn post_request( | AspeRequestVariant::Delete { aspe_uri } = &request.request { if aspe_uri != &format!("aspe:{}:{}", &state.domain, &key.fingerprint) { - return HttpResponse::BadRequest().finish(); + return HttpResponse::BadRequest().body("ASPE uri did not match key and domain"); } }