Skip to content

Commit 1181b80

Browse files
author
Christian Pietsch
committed
Merge pull request #3 from tomkralidis/patch-1
support base URLs containing question marks
2 parents d3c3d3f + e413efb commit 1181b80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oval/validator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ def normalize_base_url(url):
9494
url = url[:url.index('verb=')]
9595
elif url.endswith('?'):
9696
pass
97+
elif '?' in url and not url.endswith('?'):
98+
url = url + '&'
9799
else:
98100
url = url + '?'
99101
return url

0 commit comments

Comments
 (0)