Skip to content

Commit bc2ce01

Browse files
committed
Fix the order in which the connect compress middleware is loaded
1 parent a712790 commit bc2ce01

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/http/index.js

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

src/http/index.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ module.exports = (root) ->
6666
# Finally ensure static asset serving is last
6767
app
6868
.use(eventMiddleware)
69+
.use(connect.compress())
6970
.use(connect.static(staticPath, settings.static))
70-
.use(connect.compress)
7171

7272
app
7373

0 commit comments

Comments
 (0)