Skip to content

Commit f3b6e8f

Browse files
committed
Correctly set response base64
1 parent 209deee commit f3b6e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,8 @@ class RESPONSE {
473473
if (this._compression && this._response.body) {
474474
const { data, contentEncoding } = compression.compress(this._response.body, this._request.headers)
475475
if (contentEncoding) {
476-
this._isBase64 = true
477476
this._response.body = data.toString('base64')
477+
this._response.isBase64Encoded = true
478478
this._response.headers['content-encoding'] = [contentEncoding]
479479
}
480480
}

0 commit comments

Comments
 (0)