mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +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) {
|
||||
req.setRequestHeader('Content-Type', 'application;charset=UTF-8');
|
||||
req.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
|
||||
req.send(JSON.stringify(parameters));
|
||||
} else {
|
||||
req.send();
|
||||
|
Loading…
x
Reference in New Issue
Block a user