Skip to content

Commit

Permalink
Generic ACME URIs forward query parameters (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
shred committed Feb 6, 2024
1 parent 216d30b commit edb7ec8
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 @@ -34,7 +34,7 @@ public boolean accepts(URI serverUri) {
@Override
public URL resolve(URI serverUri) {
try {
return new URL(serverUri.getScheme(), serverUri.getHost(), serverUri.getPort(), serverUri.getPath());
return serverUri.toURL();
} catch (MalformedURLException ex) {
throw new IllegalArgumentException("Bad generic server URI", ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void testAccepts() throws URISyntaxException {
*/
@Test
public void testResolve() throws URISyntaxException {
var serverUri = new URI("http://example.com/acme");
var serverUri = new URI("http://example.com/acme?foo=abc&bar=123");

var provider = new GenericAcmeProvider();

Expand Down

0 comments on commit edb7ec8

Please sign in to comment.