From 0af0ebc5fcf4fcb5143579ae1b98b51fdb4c5627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Wed, 23 Sep 2020 19:02:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",