Skip to content

Commit

Permalink
Disable compression in debug builds by default
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten committed Dec 4, 2023
1 parent 28f8c3d commit 0e03191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ members = [
resolver = "2"

[workspace.package]
version = "0.4.0"
version = "0.4.1"
edition = "2021"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/tweedegolf/memory-serve"
Expand Down
4 changes: 2 additions & 2 deletions memory-serve/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ impl Default for ServeOptions {
fallback_status: StatusCode::NOT_FOUND,
html_cache_control: CacheControl::Short,
cache_control: CacheControl::Medium,
enable_brotli: true,
enable_gzip: true,
enable_brotli: !cfg!(debug_assertions),
enable_gzip: !cfg!(debug_assertions),
}
}
}
Expand Down

0 comments on commit 0e03191

Please sign in to comment.