Skip to content

Commit

Permalink
chore(well_known): use header name
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Apr 2, 2024
1 parent 103e5d1 commit 9881b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/well_known/src/host_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use activitypub_federation::config::Data;
use axum::{
body::Body,
http::{header::ACCEPT, HeaderMap, HeaderValue, Response, StatusCode},
http::{header::ACCEPT, HeaderMap, HeaderName, HeaderValue, Response, StatusCode},
response::{IntoResponse, Redirect},
Json,
};
Expand Down Expand Up @@ -49,7 +49,7 @@ pub async fn host_meta_xml(data: Data<AppData>) -> impl IntoResponse {
);
let mut headers = HeaderMap::new();
headers.insert(
"Content-Type",
HeaderName::from_static("Content-Type"),
HeaderValue::from_static("application/xml+xrd"),
);
(headers, Response::new(Body::from(host_meta)))
Expand Down

0 comments on commit 9881b67

Please sign in to comment.