mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
Auto-set content-type
This commit is contained in:
@@ -3469,7 +3469,10 @@ pub const Blob = struct {
|
||||
.size = store.size(),
|
||||
.store = store,
|
||||
.allocator = null,
|
||||
.content_type = "",
|
||||
.content_type = if (store.data == .file)
|
||||
store.data.file.mime_type.value
|
||||
else
|
||||
"",
|
||||
.globalThis = globalThis,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user