From 3ece45b3d4dd3788748aab39437bea99b07081a6 Mon Sep 17 00:00:00 2001 From: Nanne Baars Date: Thu, 5 Mar 2020 13:17:11 +0100 Subject: [PATCH] Fix for not passing the content-type --- .../main/resources/static/js/goatApp/view/LessonContentView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webgoat-container/src/main/resources/static/js/goatApp/view/LessonContentView.js b/webgoat-container/src/main/resources/static/js/goatApp/view/LessonContentView.js index ab4e3a4c6f..66c01605a0 100644 --- a/webgoat-container/src/main/resources/static/js/goatApp/view/LessonContentView.js +++ b/webgoat-container/src/main/resources/static/js/goatApp/view/LessonContentView.js @@ -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)