Permalink
Browse files

Merge pull request #30 from jthomas/master

More relative link fixing..
  • Loading branch information...
2 parents e1aefec + c89903f commit c274c021815c454e94c63423ebdcfff39661c8f4 @jthomas jthomas committed Nov 23, 2012
Showing with 3 additions and 14 deletions.
  1. +3 −14 src/main/java/org/dtk/resources/Build.java
@@ -294,13 +294,7 @@ protected BuildRequest generateNewBuildRequest(Map<String, Object> buildDetails)
* @throws MalformedURLException
*/
protected String layersBuildResourcePath(HttpServletRequest request, String digest) throws ConfigurationException {
- String absolutePath;
- try {
- absolutePath = HttpUtil.constructFullURLPath(request, "/build/" + digest);
- } catch (MalformedURLException e) {
- throw new ConfigurationException(urlConstructionErrorText);
- }
- return absolutePath;
+ return "/api/build/" + digest;
}
/**
@@ -312,13 +306,8 @@ protected String layersBuildResourcePath(HttpServletRequest request, String dige
* @throws MalformedURLException
*/
protected String buildRequestStatusPath(HttpServletRequest request, String reference) throws ConfigurationException {
- String absolutePath;
- try {
- absolutePath = HttpUtil.constructFullURLPath(request, "/build/status/" + reference);
- } catch (MalformedURLException e) {
- throw new ConfigurationException(urlConstructionErrorText);
- }
- return absolutePath;
+ return request.getRequestURI() + "/status/" + reference;
+
}
/**

0 comments on commit c274c02

Please sign in to comment.