Skip to content

Commit

Permalink
Compress responses
Browse files Browse the repository at this point in the history
  • Loading branch information
Insprill committed Nov 20, 2022
1 parent 6d81a44 commit 4e7b919
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ async fn main() -> std::io::Result<()> {

let mut server = HttpServer::new(|| {
App::new()
.wrap(middleware::Compress::default())
.wrap(
middleware::DefaultHeaders::new()
.add(("Referrer-Policy", "no-referrer"))
Expand Down

0 comments on commit 4e7b919

Please sign in to comment.