diff --git a/bundles/org.openhab.binding.nest/src/main/java/org/openhab/binding/nest/internal/rest/NestStreamingRequestFilter.java b/bundles/org.openhab.binding.nest/src/main/java/org/openhab/binding/nest/internal/rest/NestStreamingRequestFilter.java index d18312c1fc283..80b6c17bc6a44 100644 --- a/bundles/org.openhab.binding.nest/src/main/java/org/openhab/binding/nest/internal/rest/NestStreamingRequestFilter.java +++ b/bundles/org.openhab.binding.nest/src/main/java/org/openhab/binding/nest/internal/rest/NestStreamingRequestFilter.java @@ -40,8 +40,8 @@ public NestStreamingRequestFilter(String accessToken) { public void filter(@Nullable ClientRequestContext requestContext) throws IOException { if (requestContext != null) { MultivaluedMap headers = requestContext.getHeaders(); - headers.add(HttpHeaders.AUTHORIZATION, "Bearer " + accessToken); - headers.add(HttpHeaders.CACHE_CONTROL, "no-cache"); + headers.putSingle(HttpHeaders.AUTHORIZATION, "Bearer " + accessToken); + headers.putSingle(HttpHeaders.CACHE_CONTROL, "no-cache"); } } }