X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fresp.c;h=9d7325bcd0199ba9f01f8653e97ab8d4b3b8b010;hb=2f43c22d6b0889674abff5e0876799b0e98606c1;hp=9dfb4814418c723f7c84b177027b62fb1abdf897;hpb=ad1983c41dc7cbf763b45f5c8ec7bdb4cdafcd31;p=ashd.git diff --git a/lib/resp.c b/lib/resp.c index 9dfb481..9d7325b 100644 --- a/lib/resp.c +++ b/lib/resp.c @@ -102,7 +102,7 @@ void stdredir(struct hthead *req, int fd, int code, char *dst) adst = sstrdup(dst); } else { if(*dst == '/') { - path = sstrdup(dst); + path = sstrdup(dst + 1); } else { if((*(url = req->url)) == '/') url++;