Skip to content

Commit 349edee

Browse files
committed
Merge branch 'http-header-case-insensitive' of https://github.com/TheDistantSea/form into TheDistantSea-http-header-case-insensitive
2 parents 18327ab + 3409383 commit 349edee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ $.fn.ajaxSubmit = function(options) {
635635
s.dataType = 'xml';
636636
xhr.getResponseHeader = function(header){
637637
var headers = {'content-type': s.dataType};
638-
return headers[header];
638+
return headers[header.toLowerCase()];
639639
};
640640
// support for XHR 'status' & 'statusText' emulation :
641641
if (docRoot) {

0 commit comments

Comments
 (0)