diff --git a/src/main/java/org/radarbase/appserver/service/GithubClient.java b/src/main/java/org/radarbase/appserver/service/GithubClient.java index aba75185..78c2603b 100644 --- a/src/main/java/org/radarbase/appserver/service/GithubClient.java +++ b/src/main/java/org/radarbase/appserver/service/GithubClient.java @@ -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.");