Skip to content

Commit 6895106

Browse files
jqueryisamonadshellscape
authored andcommitted
fix: add getHeader function for webpack-dev-middleware (#110)
1 parent 4341d9d commit 6895106

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/middleware.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module.exports = {
3333
context.body = content;
3434
resolve();
3535
},
36+
getHeader: context.get.bind(context),
3637
setHeader: context.set.bind(context),
3738
locals: context.state
3839
},

0 commit comments

Comments
 (0)