Auto-set content-type

This commit is contained in:
Jarred Sumner
2022-03-26 03:39:32 -07:00
parent 89af1474d8
commit 5f482b4565

View File

@@ -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,
};
}