Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Strip the leading slash of the rest string.
[ashd.git]
/
src
/
htparser.c
diff --git
a/src/htparser.c
b/src/htparser.c
index
c78f064
..
c0aca2e
100644
(file)
--- a/
src/htparser.c
+++ b/
src/htparser.c
@@
-369,6
+369,10
@@
static void serve(struct muth *muth, va_list args)
goto out;
inbuf.b[headoff] = old;
bufeat(inbuf, headoff);
goto out;
inbuf.b[headoff] = old;
bufeat(inbuf, headoff);
+ /* We strip off the leading slash from the rest string, so
+ * that multiplexers can parse coherently. */
+ if(req->rest[0] == '/')
+ replrest(req, req->rest + 1);
/*
* Add metainformation and then send the request to the root
/*
* Add metainformation and then send the request to the root