Fixed a bug in stdredir.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 24 Aug 2010 20:55:36 +0000 (22:55 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 24 Aug 2010 20:55:36 +0000 (22:55 +0200)
lib/resp.c

index 9dfb481..9d7325b 100644 (file)
@@ -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++;