mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Make https the default protocol for address bar on desktop
This commit is contained in:
parent
b23219176d
commit
71fdba13be
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ fn sanitize_url(request: &str) -> Option<ServoUrl> {
|
|||
.ok()
|
||||
.or_else(|| {
|
||||
if request.contains('/') || is_reg_domain(request) {
|
||||
ServoUrl::parse(&format!("http://{}", request)).ok()
|
||||
ServoUrl::parse(&format!("https://{}", request)).ok()
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue