]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/api/FindAgent.java
fix: generate correct urls to static resources
[gigi.git] / src / org / cacert / gigi / api / FindAgent.java
index a78cd659d5dc3e7ecc692f3f07974db9cef518cb..ba58a7a3383af75631480e278ead2df48b821514 100644 (file)
@@ -65,7 +65,7 @@ public class FindAgent extends APIPoint {
             if ( !us.isInGroup(Group.LOCATE_AGENT)) {
                 resp.setStatus(501);
                 resp.setContentType("text/plain; charset=UTF-8");
-                resp.getWriter().println("https://" + ServerConstants.getSecureHostNamePort() + FindAgentAccess.PATH);
+                resp.getWriter().println("https://" + ServerConstants.getSecureHostNamePortSecure() + FindAgentAccess.PATH);
                 return;
             }
             resp.setContentType("text/plain; charset=UTF-8");