~ft/gemnine

20359a5043dc72907ad927bd4c4173d4c3e8b15c — Sigrid Haflínudóttir 2 years ago 5f38cba
url: special case: "/"
1 files changed, 1 insertions(+), 1 deletions(-)

M main.c
M main.c => main.c +1 -1
@@ 32,7 32,7 @@ urlto(Url *url, char *u)

	if((len = strlen(u)) < 1)
		return "";
	trail = u[len-1] == '/' ? "/" : "";
	trail = (len > 1 && u[len-1] == '/') ? "/" : "";

	if(*u == '/'){
		if(u[1] == '/') /* no protocol */