From d6d4c944902dd58bfd5cbb3a0187d309637f4df1 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Mon, 20 Mar 2017 22:35:11 +0100 Subject: [PATCH] Allow parurl to append to URLs that already have a query-string. --- wrw/proto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrw/proto.py b/wrw/proto.py index 0e3c798..628bfc9 100644 --- a/wrw/proto.py +++ b/wrw/proto.py @@ -192,7 +192,7 @@ def parstring(pars={}, **augment): def parurl(url, pars={}, **augment): qs = parstring(pars, **augment) if qs != "": - return url + "?" + qs + return url + ("&" if "?" in url else "?") + qs else: return url -- 2.11.0