mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +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
@ -564,6 +564,7 @@
|
|||||||
ajaxOptions.data = formData;
|
ajaxOptions.data = formData;
|
||||||
ajaxOptions.processData = false;
|
ajaxOptions.processData = false;
|
||||||
ajaxOptions.contentType = false;
|
ajaxOptions.contentType = false;
|
||||||
|
delete(headers['Content-type']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// and trigger the API call
|
// and trigger the API call
|
||||||
|
Loading…
x
Reference in New Issue
Block a user