Skip to content

Commit cdf3b75

Browse files
authored
Merge pull request #382 from basil/URLSearchParams
Add missing `application/x-www-form-urlencoded` header
2 parents 98a66a7 + 5205478 commit cdf3b75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

github-pullrequest-plugin/src/main/webapp/scripts/featureButton.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
function callFeature(button, answerPlaceId, parameters) {
22
fetch(button.action, {
33
method: "post",
4-
headers: crumb.wrap({}),
4+
headers: crumb.wrap({
5+
"Content-Type": "application/x-www-form-urlencoded",
6+
}),
57
body: new URLSearchParams(parameters),
68
}).then(rsp => {
79
rsp.text().then((responseText) => {

0 commit comments

Comments
 (0)