fix captcha shortening url path resolution

This commit is contained in:
Ravi Khadiwala
2023-08-10 15:04:47 -05:00
committed by ravi-signal
parent f6b3500e92
commit b6ee074149
2 changed files with 73 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ public class ShortCodeExpander {
}
public Optional<String> retrieve(final String shortCode) throws IOException {
final URI uri = shortenerHost.resolve("/" + shortCode);
final URI uri = shortenerHost.resolve(shortCode);
final HttpRequest request = HttpRequest.newBuilder().uri(uri).GET().build();
try {