Merge pull request #177 from UniquePassive/issue-167

http-service: Fix capturing the whole of dot-delimited keys
This commit is contained in:
Alexander
2017-10-15 00:07:31 +02:00
committed by GitHub

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,