diff --git a/plugins/hal-tibber/src/se/hal/plugin/tibber/TibberController.java b/plugins/hal-tibber/src/se/hal/plugin/tibber/TibberController.java index cc9067d4..704e8dc2 100644 --- a/plugins/hal-tibber/src/se/hal/plugin/tibber/TibberController.java +++ b/plugins/hal-tibber/src/se/hal/plugin/tibber/TibberController.java @@ -88,7 +88,7 @@ public class TibberController implements HalSensorController, Runnable, HalDaemo HttpClient client = new HttpClient(HttpClient.HttpRequestType.POST); client.setURL(TIBBER_API_ENDPOINT); client.setHeader("Authorization", "Bearer " + HalContext.getStringProperty(CONFIG_TIBBER_TOKEN)); - client.setContent("application/json"); + client.setHeader("Content-Type", "application/json"); String requestQuery = "{ " + "\"query\": \"{" + "viewer {" +