Skip to content

Commit

Permalink
Merge pull request #246 from luk1337/luk/charset
Browse files Browse the repository at this point in the history
Set charset=utf-8 for /raw/{id} response
  • Loading branch information
szabodanika authored Oct 24, 2024
2 parents d3a7eaf + 70a666a commit 54e839c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/pasta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub async fn getrawpasta(

// send raw content of pasta
let response = Ok(HttpResponse::NotFound()
.content_type("text/plain")
.content_type("text/plain; charset=utf-8")
.body(pastas[index].content.to_owned()));

return response;
Expand Down

0 comments on commit 54e839c

Please sign in to comment.