From c547414003c43079e0c5b089b36d2e2544401b25 Mon Sep 17 00:00:00 2001 From: Markus Rathgeb Date: Sat, 18 May 2019 00:25:38 +0200 Subject: [PATCH] set http context ID for smarthome HTTP context (#818) The Pax Web Extender is much more happy if this property is present. Let's make it happy... Fixes: https://github.com/openhab/openhab-distro/issues/891 Signed-off-by: Markus Rathgeb --- .../smarthome/io/http/internal/SmartHomeHttpContext.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.core.io.http/src/main/java/org/eclipse/smarthome/io/http/internal/SmartHomeHttpContext.java b/bundles/org.openhab.core.io.http/src/main/java/org/eclipse/smarthome/io/http/internal/SmartHomeHttpContext.java index 50425a256..f04770544 100644 --- a/bundles/org.openhab.core.io.http/src/main/java/org/eclipse/smarthome/io/http/internal/SmartHomeHttpContext.java +++ b/bundles/org.openhab.core.io.http/src/main/java/org/eclipse/smarthome/io/http/internal/SmartHomeHttpContext.java @@ -42,7 +42,8 @@ import org.osgi.service.http.HttpContext; * * @author Ɓukasz Dywicki - Initial contribution */ -@Component(service = { HttpContext.class, WrappingHttpContext.class }) +@Component(service = { HttpContext.class, WrappingHttpContext.class }, property = { + "httpContext.id:String=oh-dfl-http-ctx" }) public class SmartHomeHttpContext implements WrappingHttpContext { /**