aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
Diffstat (limited to 'iri.c')
-rw-r--r--iri.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/iri.c b/iri.c
index 26ee920..beba368 100644
--- a/iri.c
+++ b/iri.c
@@ -293,6 +293,10 @@ parse_path(struct parser *p)
{
char c;
+ /* trim initial slashes */
+ while (*p->iri == '/')
+ p->iri++;
+
p->parsed->path = p->iri;
if (*p->iri == '\0') {
p->parsed->query = p->parsed->fragment = p->iri;