Skip to content

Commit b403414

Browse files
authored
Enable request compression. (#28)
1 parent e8d725c commit b403414

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

Package.resolved

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/configure.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public func configure(_ app: Application) throws {
3232
#endif
3333

3434
app.routes.defaultMaxBodySize = 10_000_000
35+
app.http.server.configuration.requestDecompression = .enabled
3536

3637
try createBasicAuthRoutes(for: app)
3738
try createCompressionRoutes(for: app)

0 commit comments

Comments
 (0)