From: Fredrik Tolf Date: Tue, 24 Aug 2010 20:55:36 +0000 (+0200) Subject: Fixed a bug in stdredir. X-Git-Tag: 0.1~82 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=2f43c22d6b0889674abff5e0876799b0e98606c1 Fixed a bug in stdredir. --- 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++;