Skip to content

Commit

Permalink
Let the js library set the proper Content-type header when sending fi…
Browse files Browse the repository at this point in the history
…les in sandbox - fixes #501
  • Loading branch information
jonmchan authored and willdurand committed Oct 27, 2015
1 parent 0b7c5d6 commit 8b7dfdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Resources/views/layout.html.twig
Expand Up @@ -564,6 +564,7 @@
ajaxOptions.data = formData;
ajaxOptions.processData = false;
ajaxOptions.contentType = false;
delete(headers['Content-type']);
}
// and trigger the API call
Expand Down

0 comments on commit 8b7dfdd

Please sign in to comment.