Skip to content

Commit 64f6bdb

Browse files
committed
properly extract content encoding if present
1 parent 983cd97 commit 64f6bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function map (status, headers, data, encoding) {
3333
status: status,
3434
headers: headers,
3535
data: data,
36-
encoding: encoding
36+
encoding: typeof encoding === 'string' ? encoding : null
3737
}
3838
}
3939

0 commit comments

Comments
 (0)