mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-16 03:09:38 +03:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0e2bbcec62 | ||
|
|
fdd339f525 | ||
|
|
16d8a667b1 |
2
public/dist/app.js
vendored
2
public/dist/app.js
vendored
File diff suppressed because one or more lines are too long
@@ -67,7 +67,7 @@ async function dataRequest(method, url, data = null) {
|
||||
body: data,
|
||||
};
|
||||
|
||||
if (typeof data === 'object') {
|
||||
if (typeof data === 'object' && !(data instanceof FormData)) {
|
||||
options.headers = {'Content-Type': 'application/json'};
|
||||
options.body = JSON.stringify(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user