Skip to content

Commit

Permalink
ignore ? like Nim's URI implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ajusa authored and dom96 committed Jan 22, 2022
1 parent cd886a3 commit 6bf2b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jester/request.nim
Expand Up @@ -61,7 +61,7 @@ proc query*(req: Request): string =
let p = req.req.path.get("")
let queryStart = p.find('?')
if likely(queryStart != -1):
return p[queryStart .. ^1]
return p[queryStart + 1 .. ^1]
else:
return ""
else:
Expand Down

0 comments on commit 6bf2b16

Please sign in to comment.