Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More relative link fixing...

  • Loading branch information...
commit c89903f6bfc36b6df274a45f2028fd1ce1e00044 1 parent ab158c3
James Thomas authored
Showing with 3 additions and 14 deletions.
  1. +3 −14 src/main/java/org/dtk/resources/Build.java
View
17 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;
+
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.