Skip to content

Commit 0604c5f

Browse files
committed
fix(screenshot): trim content-type
1 parent 0d92209 commit 0604c5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/screenshot/src/pretty/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const PRETTY_CONTENT_TYPES = ['json', 'text', 'html']
1616
const { inject } = require('@browserless/goto')
1717

1818
const getContentType = headers => {
19-
const contentType = getExtension(headers['content-type']?.split(';')[0].toLowerCase())
19+
const contentType = getExtension(headers['content-type']?.split(';')[0].trim().toLowerCase())
2020
return contentType === 'txt' ? 'text' : contentType
2121
}
2222

0 commit comments

Comments
 (0)