Skip to content

Commit

Permalink
by default open the https url for a given host, not the http url
Browse files Browse the repository at this point in the history
(http does almost not exist any more)
  • Loading branch information
Orbiter committed May 26, 2024
1 parent 71a6074 commit 7045465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/net/yacy/htroot/IndexBrowser_p.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public static serverObjects respond(final RequestHeader header, final serverObje
!path.startsWith("https://") &&
!path.startsWith("ftp://") &&
!path.startsWith("smb://") &&
!path.startsWith("file://"))) { path = "http://" + path; }
!path.startsWith("file://"))) { path = "https://" + path; }
prop.putHTML("path", path);
prop.put("delete", path.length() > 0 ? 1 : 0);

Expand Down

0 comments on commit 7045465

Please sign in to comment.