mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Fixed invalid contant type header (#1331)
The `application` is not a valid MimeType: https://www.iana.org/assignments/media-types/media-types.xhtml#application
This commit is contained in:
parent
313a3dd2c9
commit
d225105e58
@ -47,7 +47,7 @@ export default function hassCallApi(host, auth, method, path, parameters) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (parameters) {
|
if (parameters) {
|
||||||
req.setRequestHeader('Content-Type', 'application;charset=UTF-8');
|
req.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
|
||||||
req.send(JSON.stringify(parameters));
|
req.send(JSON.stringify(parameters));
|
||||||
} else {
|
} else {
|
||||||
req.send();
|
req.send();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user