Skip to content

Commit

Permalink
修复 solon-docs-openapi2 分布式文档,地址转发出错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
noear committed Oct 23, 2024
1 parent 7b60f59 commit 4d00a8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public static String getApiJson(Context ctx, String group) throws IOException {
throw new SolonException("The target service does not exist (" + upstreamTarget + ")");
}

String url = PathUtil.joinUri(targetAddr, docket.upstream().getUri()).substring(1);
String url = PathUtil.joinUri(targetAddr, docket.upstream().getUri());
return httpGet(url, docket);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static String getApiJson(Context ctx, String group) throws IOException {
throw new SolonException("The target service does not exist (" + upstreamTarget + ")");
}

String url = PathUtil.joinUri(targetAddr, docket.upstream().getUri()).substring(1);
String url = PathUtil.joinUri(targetAddr, docket.upstream().getUri());
return httpGet(url, docket);
}
}
Expand Down

0 comments on commit 4d00a8f

Please sign in to comment.