homey-api 3.0.18 → 3.0.19
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.
|
@@ -398,6 +398,7 @@ class HomeyAPIV3 extends HomeyAPI {
|
|
|
398
398
|
headers['Authorization'] = `Bearer ${this.__token}`;
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
+
const originalBody = body;
|
|
401
402
|
if (['PUT', 'POST'].includes(method)) {
|
|
402
403
|
if (body && json === true) {
|
|
403
404
|
headers['Content-Type'] = 'application/json';
|
|
@@ -451,7 +452,7 @@ class HomeyAPIV3 extends HomeyAPI {
|
|
|
451
452
|
method,
|
|
452
453
|
headers,
|
|
453
454
|
path,
|
|
454
|
-
|
|
455
|
+
originalBody,
|
|
455
456
|
retryAfterRefresh: true,
|
|
456
457
|
});
|
|
457
458
|
}
|