Skip to content

Commit

Permalink
fix main(...)
Browse files Browse the repository at this point in the history
"http://..." version of the URL results
in an issue (load from URL cannot deal
with the HTTP 3XX response)
  • Loading branch information
robert-gurol-ebcont committed Apr 14, 2023
1 parent 8d80fda commit 95d0014
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class APIAccess {

public static void main(final String[] args) {
try {
final URL url = new URL("http://apis.is/weather/observations/en?stations=1");
final URL url = new URL("https://apis.is/weather/observations/en?stations=1");
try(InputStream inputStream = url.openStream();
InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName("UTF-8"));
) {
Expand Down

0 comments on commit 95d0014

Please sign in to comment.