Skip to content

Commit 5205478

Browse files
committed
Add missing application/x-www-form-urlencoded header
1 parent 98a66a7 commit 5205478

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)