Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f6a2e7

Browse files
author
Tomas Kirda
committed
Merge pull request #11 from bigdb/thomaswelton-patch-1
Set Accept Headers for JSON responses
2 parents c6b1649 + b27fd53 commit 4f6a2e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Html5UploadDemo/Scripts/src/html5Upload.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ define(function () {
164164
fileName = file.name;
165165

166166
xhr.open('POST', manager.uploadUrl);
167+
xhr.setRequestHeader('Accept', 'application/json, text/javascript', '*/*');
167168

168169
// Triggered when upload starts:
169170
xhr.upload.onloadstart = function () {

0 commit comments

Comments
 (0)