mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/api: set json mime type for metadata
This commit is contained in:
@ -398,7 +398,7 @@ class Api extends events.EventTarget {
|
||||
|
||||
if (data) {
|
||||
if (files && Object.keys(files).length) {
|
||||
req.attach("metadata", new Blob([JSON.stringify(data)]));
|
||||
req.attach("metadata", new Blob([JSON.stringify(data)], { type: "application/json" }));
|
||||
} else {
|
||||
req.set("Content-Type", "application/json");
|
||||
req.send(data);
|
||||
|
Reference in New Issue
Block a user