diff --git a/index.js b/index.js index c95156c..5770fdf 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,7 @@ import { serialize } from './lib/cookie.js' export default class Response { constructor(req, res) { this.origin = { req, res } - this.rendered = false + this.rendered = !!res.rendered } /** diff --git a/package.json b/package.json index 769b8fe..debfb0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gm5/response", - "version": "1.3.0", + "version": "1.3.1", "type": "module", "description": "对Http的response进一步封装, 提供常用的API", "main": "index.js",