Skip to content

Commit

Permalink
Merge branch 'update_actix_web' of github.com:Jikstra/miniserve into …
Browse files Browse the repository at this point in the history
…update_actix_web
  • Loading branch information
Jikstra committed Dec 28, 2021
2 parents 3a417b2 + 2c0c09a commit a826b20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/listing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ pub fn directory_listing(
.body(qr_to_svg_string(&qr, 2)),
Err(err) => {
log::error!("URL is invalid (too long?): {:?}", err);
HttpResponse::UriTooLong().body(BoxBody::new(""))
HttpResponse::UriTooLong().finish()
}
};
return Ok(ServiceResponse::new(req.clone(), res));
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ async fn favicon() -> impl Responder {
let logo = include_str!("../data/logo.svg");
HttpResponse::Ok()
.insert_header(ContentType(mime::IMAGE_SVG))
.message_body(BoxBody::new(logo))
.body(logo)
}

async fn css() -> impl Responder {
Expand Down

0 comments on commit a826b20

Please sign in to comment.