Skip to content

Commit e413efb

Browse files
committed
Update validator.py
1 parent b3eff33 commit e413efb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

oval/validator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ def normalize_base_url(url):
9292
url = url.strip()
9393
if '?verb=' in url:
9494
url = url[:url.index('verb=')]
95-
elif url.endswith('?') or '?' in url:
95+
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)