From 2f43c22d6b0889674abff5e0876799b0e98606c1 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Tue, 24 Aug 2010 22:55:36 +0200 Subject: [PATCH] Fixed a bug in stdredir. --- lib/resp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.11.0