mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
Update blob.zig
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user