Skip to content

Commit 1c1407d

Browse files
committed
use set instead of append
1 parent bb83d4e commit 1c1407d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/modules/fetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function request(url, {headers, data, body, ...other} = {}) {
1414
} else if (data instanceof URLSearchParams) {
1515
contentType = 'application/x-www-form-urlencoded';
1616
body = data;
17-
body.append('_csrf', csrfToken);
17+
body.set('_csrf', csrfToken);
1818
} else if (isObject(data) || Array.isArray(data)) {
1919
contentType = 'application/json';
2020
body = JSON.stringify(data);

0 commit comments

Comments
 (0)