Skip to content

Commit ed6a80c

Browse files
authored
Fix koa api example
see http://koajs.com/#context
1 parent 6239faf commit ed6a80c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ var app = koa();
107107
108108
var hotMiddleware = require("webpack-hot-middleware")(compiler);
109109
app.use(function* (next) {
110-
yield hotMiddleware.bind(null, this.req, this.res);
110+
yield hotMiddleware.bind(null, this.request, this.response);
111111
yield next;
112112
});
113113
```

0 commit comments

Comments
 (0)