Provide MIME type data for File in formdata::get_file

This commit is contained in:
Keith Yeung 2017-04-09 17:34:16 -07:00
parent d77d752990
commit b5722e50bb
4 changed files with 3 additions and 6 deletions

View file

@ -87,7 +87,7 @@ unsafe fn write_blob(blob: Root<Blob>,
-> Result<(), ()> {
let blob_vec = try!(blob.get_bytes());
let blob_length = blob_vec.len();
let type_string_bytes = blob.get_type_string().as_bytes().to_vec();
let type_string_bytes = blob.type_string().as_bytes().to_vec();
let type_string_length = type_string_bytes.len();
assert!(JS_WriteUint32Pair(w, StructuredCloneTags::DomBlob as u32, 0));
write_length(w, blob_length);