From 7debdedbec986216a4a39940d91c918450eefc55 Mon Sep 17 00:00:00 2001 From: mcurcija Date: Mon, 13 Mar 2017 19:57:01 +0100 Subject: [PATCH] set internal Config field on construction --- .../src/osgi/enroute/rest/simple/provider/RestServlet.java | 1 + 1 file changed, 1 insertion(+) diff --git a/osgi.enroute.rest.simple.provider/src/osgi/enroute/rest/simple/provider/RestServlet.java b/osgi.enroute.rest.simple.provider/src/osgi/enroute/rest/simple/provider/RestServlet.java index bca6a57..bb80989 100644 --- a/osgi.enroute.rest.simple.provider/src/osgi/enroute/rest/simple/provider/RestServlet.java +++ b/osgi.enroute.rest.simple.provider/src/osgi/enroute/rest/simple/provider/RestServlet.java @@ -39,6 +39,7 @@ public String toString() { final RestMapper mapper; RestServlet(Config config, String namespace) { + this.config = config; corsEnabled = config.corsEnabled(); this.mapper = new RestMapper(namespace); }