Merge pull request #831 from bennettmsherman/header-filters

Remove Reddit's 'Nel' and 'Report-To' (network error logging) response headers
This commit is contained in:
Matthew Esposito 2023-11-29 09:25:16 -05:00 committed by GitHub
commit 9d948abadc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,8 @@ async fn stream(url: &str, req: &Request<Body>) -> Result<Response<Body>, String
rm("x-cdn-server-region"); rm("x-cdn-server-region");
rm("x-reddit-cdn"); rm("x-reddit-cdn");
rm("x-reddit-video-features"); rm("x-reddit-video-features");
rm("Nel");
rm("Report-To");
res res
}) })