discard bad mime types per spec
This commit is contained in:
@@ -358,7 +358,14 @@
|
|||||||
? concatTypedarrays(chunks)
|
? concatTypedarrays(chunks)
|
||||||
: [].concat.apply([], chunks)
|
: [].concat.apply([], chunks)
|
||||||
this.size = this._buffer.length
|
this.size = this._buffer.length
|
||||||
this.type = opts ? opts.type || '' : ''
|
|
||||||
|
this.type = opts.type || ''
|
||||||
|
if (/[^\u0020-\u007E]/.test(this.type)) {
|
||||||
|
this.type = ''
|
||||||
|
} else {
|
||||||
|
this.type = this.type.toLowerCase()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Blob.prototype.slice = function (start, end, type) {
|
Blob.prototype.slice = function (start, end, type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user