1 parent ac8810b commit e9bdd2bCopy full SHA for e9bdd2b
1 file changed
index.js
@@ -1,4 +1,3 @@
1
-
2
/**
3
* Module dependencies.
4
*/
@@ -61,7 +60,7 @@ module.exports = function(opts){
61
60
throw new Error('this.session can only be set as null or an object.');
62
});
63
64
- yield next;
+ yield *next;
65
66
// not accessed
67
if (undefined === sess) return;
@@ -165,4 +164,4 @@ Session.prototype.save = function(){
165
164
166
debug('save %s', json);
167
ctx.cookies.set(key, json, opts);
168
-};
+};
0 commit comments