eligrey / Blob.js

An HTML5 Blob implementation
Other
1.15k stars 605 forks source link

Content-Type header has multiple comma separated values #73

Open rohit-gohri opened 5 years ago

rohit-gohri commented 5 years ago

I'm using formdata-polyfill and blob-polyfill with jQuery v1.12.4 on IE9 in a webpack build.

The request that is sent with a $.ajax call has headers like:

Content-Type    multipart/form-data; boundary=----formdata-polyfill-0.9083965467102468, multipart/form-data; boundary=----formdata-polyfill-0.9083965467102468

From : https://github.com/jimmywarting/FormData/issues/86

As suggested here https://github.com/jimmywarting/FormData/issues/86#issuecomment-492783458 maybe the check can be added here too.