update upnp description.xml response to come from root instead of

/upnp.....
This commit is contained in:
Admin
2015-08-25 16:42:30 -05:00
parent 3ea7f2903f
commit fa15cf3952
4 changed files with 4 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ public class UpnpSettingsResource {
private void setupListener (BridgeSettings theSettings) {
// http://ip_address:port/upnp/:id/description.xml which returns the xml configuration for the location of the hue emulator
get(UPNP_CONTEXT + "/:id/description.xml", "application/xml", (request, response) -> {
get("/description.xml", "application/xml", (request, response) -> {
log.info("upnp device settings requested: " + request.params(":id") + " from " + request.ip());
String portNumber = Integer.toString(request.port());
String filledTemplate = String.format(hueTemplate, theSettings.getUpnpConfigAddress(), portNumber, theSettings.getUpnpConfigAddress());