mirror of https://github.com/adamdruppe/arsd.git
data uri relative links should not have slash
This commit is contained in:
parent
fe5979cfc6
commit
4ca6535f73
2
cgi.d
2
cgi.d
|
@ -2981,6 +2981,8 @@ struct Uri {
|
||||||
/// Browsers use a function like this to figure out links in html.
|
/// Browsers use a function like this to figure out links in html.
|
||||||
Uri basedOn(in Uri baseUrl) const {
|
Uri basedOn(in Uri baseUrl) const {
|
||||||
Uri n = this; // copies
|
Uri n = this; // copies
|
||||||
|
if(n.scheme == "data")
|
||||||
|
return n;
|
||||||
// n.uriInvalidated = true; // make sure we regenerate...
|
// n.uriInvalidated = true; // make sure we regenerate...
|
||||||
|
|
||||||
// userinfo is not inherited... is this wrong?
|
// userinfo is not inherited... is this wrong?
|
||||||
|
|
Loading…
Reference in New Issue