homebridge-xbox-tv 3.3.5 → 3.3.6-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/webApi/xboxwebapi.js +3 -2
package/README.md
CHANGED
|
@@ -143,7 +143,7 @@ Homebridge plugin for Microsoft game Consoles. Tested with Xbox One X/S and Xbox
|
|
|
143
143
|
|
|
144
144
|
### RESTFul Integration
|
|
145
145
|
|
|
146
|
-
* POST data as a JSON Object `{Power: true}`
|
|
146
|
+
* POST data as a JSON Object `{Power: true}`, content type must be `application/json`
|
|
147
147
|
|
|
148
148
|
| Method | URL | Path | Response | Type |
|
|
149
149
|
| --- | --- | --- | --- | --- |
|
package/package.json
CHANGED
package/src/webApi/xboxwebapi.js
CHANGED
|
@@ -62,7 +62,8 @@ class XboxWebApi extends EventEmitter {
|
|
|
62
62
|
'x-xbl-client-name': 'XboxApp',
|
|
63
63
|
'x-xbl-client-type': 'UWA',
|
|
64
64
|
'x-xbl-client-version': '39.39.22001.0',
|
|
65
|
-
'skillplatform': 'RemoteManagement'
|
|
65
|
+
'skillplatform': 'RemoteManagement',
|
|
66
|
+
'Content-Type': 'application/json'
|
|
66
67
|
}
|
|
67
68
|
this.headers = headers;
|
|
68
69
|
|
|
@@ -433,4 +434,4 @@ class XboxWebApi extends EventEmitter {
|
|
|
433
434
|
};
|
|
434
435
|
}
|
|
435
436
|
}
|
|
436
|
-
export default XboxWebApi;
|
|
437
|
+
export default XboxWebApi;
|