Fix for not passing the content-type

This commit is contained in:
Nanne Baars 2020-03-05 13:17:11 +01:00 committed by Nanne Baars
parent 6b7678fb1d
commit 3ece45b3d4

View File

@ -112,7 +112,7 @@ define(['jquery',
headers: additionalHeaders,
method: formMethod,
processData: 'multipart/form-data' !== encType,
contentType: 'multipart/form-data' === encType ? false : encType,
contentType: 'multipart/form-data' === encType ? false : contentType,
data: submitData,
}).then(function (data) {
self.onSuccessResponse(data, failureCallbackFunctionName, successCallBackFunctionName, informationalCallbackFunctionName)