mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-01 21:06:15 +03:00
Let the js library set the proper Content-type header when sending files in sandbox - fixes #501
This commit is contained in:
parent
0b7c5d6749
commit
8b7dfdd913
1 changed files with 1 additions and 0 deletions
|
@ -564,6 +564,7 @@
|
|||
ajaxOptions.data = formData;
|
||||
ajaxOptions.processData = false;
|
||||
ajaxOptions.contentType = false;
|
||||
delete(headers['Content-type']);
|
||||
}
|
||||
|
||||
// and trigger the API call
|
||||
|
|
Loading…
Add table
Reference in a new issue