-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Internet Explorer doesn't send Accept header #654
Comments
Oh, github strips input.. it sends the header as / |
And btw I'm using Internet Explorer 9 |
File Uploads with IE are done using the iframe transport. |
I don't think this is the case. IE9 seems to be using XHR and PUT method. The accept header handling just differs. So maybe this should be fixed properly (by adding full xhr support for IE9) or then force iframe uploads for IE9.. |
No released version of IE supports XHR file uploads. Did you include the iframe transport library? |
OK, Yeah I didn't include the iframe transport library because I don't want the iframe upload. Then why is IE uploading with PUT if XHR isn't supported? here's a snippet from access.log
So IE9 definitely is PUTting atleast. |
The iframe transport is enabled simply by adding 'iframe ' in front of the jQuery ajax dataType option: If no iframe transport has been registered, jQuery will fall back to using XHR as transport, but without actually uploading any files. To prevent these useless XHR uploads, you can return false in the send callback when the dataType option contains "iframe":
|
How is that IE error today? I getting 403 on Django because I do not send some headers. |
Internet Explorer isn't sending the Accept header correctly, it sends: /
reproduce code
The text was updated successfully, but these errors were encountered: