Created
August 5, 2019 11:15
-
-
Save PaperCoder/63a62d029f7cd879b3ce1b6ac0470e0c to your computer and use it in GitHub Desktop.
Add missing content-type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/Pim/Bundle/EnrichBundle/Resources/public/js/saver/base-saver.js | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
--- src/Pim/Bundle/EnrichBundle/Resources/public/js/saver/base-saver.js (revision d1f975690b64872f3aecc4cc19e70b38d6febb60) | |
+++ src/Pim/Bundle/EnrichBundle/Resources/public/js/saver/base-saver.js (date 1564996256000) | |
@@ -25,6 +25,7 @@ | |
/* todo: remove ternary when all instances using this module will provide method parameter */ | |
type: 'undefined' === typeof method ? 'POST' : method, | |
url: this.getUrl(code), | |
+ contentType: 'application/json', | |
data: JSON.stringify(data) | |
}).then(function (entity) { | |
mediator.trigger('pim_enrich:form:entity:post_save', entity); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment