diff --git a/lib/response.js b/lib/response.js index bfe2f63..114c78e 100644 --- a/lib/response.js +++ b/lib/response.js @@ -473,8 +473,8 @@ class RESPONSE { if (this._compression && this._response.body) { const { data, contentEncoding } = compression.compress(this._response.body, this._request.headers) if (contentEncoding) { - this._isBase64 = true this._response.body = data.toString('base64') + this._response.isBase64Encoded = true this._response.headers['content-encoding'] = [contentEncoding] } }