Update blob.zig

This commit is contained in:
Jarred Sumner
2023-03-07 22:40:00 -08:00
parent d728839497
commit dec6c62968

View File

@@ -2458,6 +2458,9 @@ pub const Blob = struct {
var slicer = zig_str.toSlice(bun.default_allocator);
defer slicer.deinit();
var slice = slicer.slice();
if (!strings.isAllASCII(slice)) {
break :inner;
}
if (globalThis.bunVM().mimeType(slice)) |mime| {
content_type = mime.value;