mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-08-14 23:50:45 +00:00
Add header value as bytes directly.
This commit is contained in:
parent
401d1ba1fe
commit
1dd4afdb16
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
|
||||||
|
|
||||||
for (key, value) in resp.headers() {
|
for (key, value) in resp.headers() {
|
||||||
if is_header_allowed(key.as_str()) {
|
if is_header_allowed(key.as_str()) {
|
||||||
response.append_header((key.as_str(), value.to_str()?));
|
response.append_header((key.as_str(), value.as_bytes()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue