We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd5fa84 commit 10be455Copy full SHA for 10be455
1 file changed
src/main/java/de/martinspielmann/wicket/pwnedpasswordsvalidator/PwnedPasswordsValidator.java
@@ -147,9 +147,9 @@ protected Status getResponseStatus(String pw) {
147
148
HttpURLConnection c;
149
if (getProxy() != null) {
150
- c = (HttpURLConnection) getApiUrl(pw).openConnection(getProxy());
+ c = (HttpURLConnection) getApiUrl(pw).toURL().openConnection(getProxy());
151
} else {
152
- c = (HttpURLConnection) getApiUrl(pw).openConnection();
+ c = (HttpURLConnection) getApiUrl(pw).toURL().openConnection();
153
}
154
c.setRequestMethod("GET");
155
c.setRequestProperty("User-Agent", "pingunaut/wicket-pwnedpasswords-validator");
0 commit comments