mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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()
|
.ok()
|
||||||
.or_else(|| {
|
.or_else(|| {
|
||||||
if request.contains('/') || is_reg_domain(request) {
|
if request.contains('/') || is_reg_domain(request) {
|
||||||
ServoUrl::parse(&format!("http://{}", request)).ok()
|
ServoUrl::parse(&format!("https://{}", request)).ok()
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue