dont include '/' (slash) in remaining part of url
This commit is contained in:
parent
aaf2b3939e
commit
74e1c687e1
1 changed files with 3 additions and 0 deletions
3
http.c
3
http.c
|
@ -87,6 +87,9 @@ http_resolve(http_connection_t *hc, char **remainp)
|
|||
if(*v != 0 && *v != '/')
|
||||
return NULL;
|
||||
|
||||
if(*v == '/')
|
||||
v++;
|
||||
|
||||
*remainp = v;
|
||||
return hp;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue