koa 2.16.0 → 2.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application.js +2 -3
- package/lib/response.js +1 -1
- package/package.json +1 -1
package/lib/application.js
CHANGED
|
@@ -257,10 +257,9 @@ function respond(ctx) {
|
|
|
257
257
|
// allow bypassing koa
|
|
258
258
|
if (false === ctx.respond) return;
|
|
259
259
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
if (!ctx.writable) return res.end();
|
|
260
|
+
if (!ctx.writable) return;
|
|
263
261
|
|
|
262
|
+
const res = ctx.res;
|
|
264
263
|
let body = ctx.body;
|
|
265
264
|
const code = ctx.status;
|
|
266
265
|
|
package/lib/response.js
CHANGED