Fix http.URL class final URL generation

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-07-24 03:20:57 -04:00
parent 2e12a6af41
commit 4c73239dde
2 changed files with 4 additions and 4 deletions

View File

@@ -20,9 +20,7 @@ class URL(object):
def to_string(self):
if self._args.keys():
query = force_bytes(
'?{}'.format(self._args.urlencode())
)
query = '?{}'.format(self._args.urlencode())
else:
query = ''
@@ -31,6 +29,6 @@ class URL(object):
else:
path = ''
result = force_bytes('{}{}'.format(path, query))
result = '{}{}'.format(path, query)
return result