Skip to content

Commit

Permalink
Merge pull request libreddit#831 from bennettmsherman/header-filters
Browse files Browse the repository at this point in the history
Remove Reddit's 'Nel' and 'Report-To' (network error logging) response headers
  • Loading branch information
sigaloid authored Nov 29, 2023
2 parents 2815dc5 + 7a14975 commit 9d948ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ async fn stream(url: &str, req: &Request<Body>) -> Result<Response<Body>, String
rm("x-cdn-server-region");
rm("x-reddit-cdn");
rm("x-reddit-video-features");
rm("Nel");
rm("Report-To");

res
})
Expand Down

0 comments on commit 9d948ab

Please sign in to comment.