mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
http_protocol: remove charset=utf-8 from response content type
We send bencode bytes. They should possibly not be sent as text at all
This commit is contained in:
parent
5da1c304a3
commit
61569d0f31
1 changed files with 3 additions and 3 deletions
|
|
@ -125,7 +125,7 @@ impl axum::response::IntoResponse for AnnounceResponse {
|
|||
self.write(&mut response_bytes).unwrap();
|
||||
|
||||
(
|
||||
[("Content-type", "text/plain; charset=utf-8")],
|
||||
[("Content-type", "text/plain")],
|
||||
response_bytes,
|
||||
)
|
||||
.into_response()
|
||||
|
|
@ -170,7 +170,7 @@ impl axum::response::IntoResponse for ScrapeResponse {
|
|||
self.write(&mut response_bytes).unwrap();
|
||||
|
||||
(
|
||||
[("Content-type", "text/plain; charset=utf-8")],
|
||||
[("Content-type", "text/plain")],
|
||||
response_bytes,
|
||||
)
|
||||
.into_response()
|
||||
|
|
@ -213,7 +213,7 @@ impl axum::response::IntoResponse for FailureResponse {
|
|||
self.write(&mut response_bytes).unwrap();
|
||||
|
||||
(
|
||||
[("Content-type", "text/plain; charset=utf-8")],
|
||||
[("Content-type", "text/plain")],
|
||||
response_bytes,
|
||||
)
|
||||
.into_response()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue