Fix jpeg mime type determination.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3808 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
b5111efc29
commit
9f75346dd8
@ -320,7 +320,7 @@ function startsWithBytes(data, bytes) {
|
||||
if (data.byteLength >= bytes.length) {
|
||||
var dataBytes = new Uint8Array(data.slice(0, bytes.length));
|
||||
for (var i = 0; i < bytes.length; i++) {
|
||||
if (dataBytes[i] != bytes[i] || bytes[i] === null) {
|
||||
if (dataBytes[i] != bytes[i] && bytes[i] !== null) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user