do not print url description if it is the same as the url itself
1 files changed, 6 insertions(+), 2 deletions(-) M main.c
M main.c => main.c +6-2
@@ 46,7 46,7 @@ void main(int argc, char **argv) { Response *r; char *s, *t, *u; char *s, *t, *u, *tmp; Url *url, *x; int len, wait, pl, fd; @@ Plumbmsg *m; 152,7 152,11 @@ nextreq: else t = ""; x = urlparse(r->url, u); Bprint(&out, "→ %U %s\n", x, t); if((tmp = smprint("%U", x)) != nil && strcmp(tmp, t) == 0) Bprint(&out, "→ %s\n", tmp); else Bprint(&out, "→ %s %s\n", tmp, t); free(tmp); freeurl(x); }else{ Bprint(&out, "%s\n", s);