Skip to content

Commit

Permalink
Merge pull request blueimp#2550 from rslinckx/patch-1
Browse files Browse the repository at this point in the history
Work on a copy of the headers in _initXHRData
  • Loading branch information
blueimp committed Aug 29, 2013
2 parents f92df0e + 086fbc4 commit 2dec28a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.fileupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
// Ignore non-multipart setting if not supported:
multipart = options.multipart || !$.support.xhrFileUpload,
paramName = options.paramName[0];
options.headers = options.headers || {};
options.headers = $.extend({}, options.headers || {});
if (options.contentRange) {
options.headers['Content-Range'] = options.contentRange;
}
Expand Down

0 comments on commit 2dec28a

Please sign in to comment.