Skip to content

Commit

Permalink
Fix GithubClient: include query param in uri
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgxvii committed Oct 10, 2023
1 parent ceed468 commit 7249224
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ public URI getValidGithubUri(URI uri) throws IOException {
if (uri.getHost().equalsIgnoreCase(GITHUB_API_URI)
&& uri.getScheme().equalsIgnoreCase("https")
&& (uri.getPort() == -1 || uri.getPort() == 443)) {
return UriComponentsBuilder.newInstance().scheme("https").host(uri.getHost()).path(uri.getPath()).build().toUri();
return UriComponentsBuilder.newInstance()
.scheme("https").host(uri.getHost()).path(uri.getPath()).query(uri.getQuery()).build().toUri();
}
else {
throw new MalformedURLException("Invalid Github url.");
Expand Down

0 comments on commit 7249224

Please sign in to comment.