Skip to content
Snippets Groups Projects
Commit e07ec134 authored by tomleb's avatar tomleb
Browse files

Don't show hostname on file scheme

parent 11d626d9
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,12 @@ std::string URL::toString() const {
if (isRelative()) {
return path;
}
return scheme + "://" + host + path;
/* File is most likely gonna be localhost, we don't wanna print it .. */
if (scheme == "file") {
return scheme + "://" + path;
} else {
return scheme + "://" + host + path;
}
}
bool URL::isRelative() const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment