Closed
Description
I took a peek at buffer.Blob.toString()
and saw that the type
argument was defaulted to itself
Line 179 in 17467d1
that is not the case in the browser (it's not what we are doing in fetch-blob) and the spec says it should default the type to a empty string if it's not provided
If the contentType parameter is not provided, let relativeContentType be set to the empty string.
https://w3c.github.io/FileAPI/#slice-method-algo
What is the expected behavior?
new buffer.Blob([], {type: 'text/html'}).slice().type === ''
What do you see instead?
new buffer.Blob([], {type: 'text/html'}).slice().type === 'text/html'
Metadata
Metadata
Assignees
Labels
No labels