follow #15357 and move decodeQuery (#15860)

* follow #15357 and move decodeQuery
* solve problem one
* minor
* deprecate decodeData
* add changelog and since
* add testcase for decodeQuery
This commit is contained in:
flywind
2020-12-27 04:59:32 -06:00
committed by GitHub
parent 2bdc479622
commit 689504081f
4 changed files with 67 additions and 34 deletions

View File

@@ -0,0 +1,7 @@
import std/[uri, sequtils]
block:
doAssert toSeq(decodeQuery("a=1&b=0")) == @[("a", "1"), ("b", "0")]
doAssertRaises(UriParseError):
discard toSeq(decodeQuery("a=1&b=2c=6"))