Skip to content

Commit

Permalink
fix(emm): prepare for proxy...
Browse files Browse the repository at this point in the history
  • Loading branch information
olovy committed Nov 28, 2024
1 parent e4b14a9 commit acb4ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion emm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ task(appRun, dependsOn: "classes", type: JavaExec) {
systemProperties(
'xl.secret.properties': System.getProperty("xl.secret.properties"),
'xl.logRoot': System.getProperty("xl.logRoot", "./logs"),
'xl.http.port': System.getProperty("xl.http.port", "8182")
'xl.http.port': System.getProperty("xl.http.port", "8186")
)
args(System.getProperty("args", "").split() as String[])

Expand Down
3 changes: 1 addition & 2 deletions emm/src/main/java/whelk/EmmServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void doGet(HttpServletRequest req, HttpServletResponse res) {
responseObject.put("@context", contexts);
responseObject.put("type", "OrderedCollection");
responseObject.put("id", apiBaseUrl);
responseObject.put("url", apiBaseUrl + "full");
responseObject.put("url", apiBaseUrl + (apiBaseUrl.endsWith("/") ? "full" : "/full"));
var first = new LinkedHashMap<>();
first.put("type", "OrderedCollectionPage");
first.put("id", apiBaseUrl+"?until="+System.currentTimeMillis());
Expand All @@ -63,5 +63,4 @@ public void doGet(HttpServletRequest req, HttpServletResponse res) {
}
}


}

0 comments on commit acb4ac4

Please sign in to comment.