Skip to content

Commit

Permalink
fix(screenshot): trim content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 9, 2025
1 parent 0d92209 commit 0604c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/screenshot/src/pretty/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const PRETTY_CONTENT_TYPES = ['json', 'text', 'html']
const { inject } = require('@browserless/goto')

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

Expand Down

0 comments on commit 0604c5f

Please sign in to comment.