all repos — litestore @ c32be99d31c4b8da56a01d660efe44d3a137f163

A minimalist nosql document store.

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

c32be99d31c4b8da56a01d660efe44d3a137f163

parent

7df07cc402038099cee0ed06c3c2b5d26878cf5f

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)