all repos — litestore @ caf24961365f9735cc633dda6663be8816281037

A minimalist nosql document store.

Fixed query string ? problem.
h3rald h3rald@h3rald.com
Sun, 16 Aug 2020 17:55:16 +0200
commit

caf24961365f9735cc633dda6663be8816281037

parent

2741d2c6fe955a92c261722f93bd592a39a2092f

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/litestorepkg/lib/api_v7.nimsrc/litestorepkg/lib/api_v7.nim

@@ -207,7 +207,10 @@ else:

discard proc parseQueryOptions*(querystring: string, options: var QueryOptions) = - var fragments = querystring.split('&') + var q = querystring + if q.startsWith("?"): + q = q[1 .. q.len - 1] + var fragments = q.split('&') for f in fragments: f.parseQueryOption(options)