http-service: Fix capturing the whole of dot-delimited keys

This commit is contained in:
Unknown
2017-10-15 00:04:33 +02:00
parent 7c79a3b845
commit 09f7cebedb

View File

@@ -109,7 +109,7 @@ public class ConfigService
return new Configuration(config);
}
@RequestMapping(path = "/{key}", method = PUT)
@RequestMapping(path = "/{key:.+}", method = PUT)
public void setKey(
HttpServletRequest request,
HttpServletResponse response,
@@ -134,7 +134,7 @@ public class ConfigService
}
}
@RequestMapping(path = "/{key}", method = DELETE)
@RequestMapping(path = "/{key:.+}", method = DELETE)
public void unsetKey(
HttpServletRequest request,
HttpServletResponse response,