High-level API: fixed URL encoding in params.
h3rald h3rald@h3rald.com
Sat, 01 Sep 2018 17:32:42 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
litestore.nim
→
litestore.nim
@@ -129,7 +129,7 @@
proc query*(table: StringTableRef): string = var params = newSeq[string](0) for key, value in pairs(table): - params.add("$1=$2" % @[key, value.encodeUrl]) + params.add("$1=$2" % @[key, value]) return params.join("&") proc newLSRequest(meth: HttpMethod, resource, id, body = "", params = newStringTable(), headers = newHttpHeaders()): LSRequest =