aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/uri.c b/src/uri.c
index 0ee9dade..f347f010 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -188,12 +188,10 @@ query:
if (*ptr == '?') {
out->query.buf = ++ptr;
for (uint8_t c; (c = *ptr) != '\0'; ++ptr) {
- switch (c) {
- case '#':
+ if (c == '#') {
goto fragment;
- default:
- ++out->query.len;
}
+ ++out->query.len;
}
}