mirror of
https://github.com/TeamPiped/piped-proxy.git
synced 2024-12-06 19:16:48 +01:00
Add header value as bytes directly.
This commit is contained in:
+1
-1
@@ -204,7 +204,7 @@ async fn index(req: HttpRequest) -> Result<HttpResponse, Box<dyn Error>> {
|
||||
|
||||
for (key, value) in resp.headers() {
|
||||
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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user