Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad1983c
)
Fixed a bug in stdredir.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 24 Aug 2010 20:55:36 +0000
(22:55 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Tue, 24 Aug 2010 20:55:36 +0000
(22:55 +0200)
lib/resp.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/resp.c
b/lib/resp.c
index
9dfb481
..
9d7325b
100644
(file)
--- 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++;