Minor adjustment (URI (marked with custom injection char) has precedence over GET/POST)

This commit is contained in:
Miroslav Stampar 2013-01-05 21:16:47 +01:00
parent dc21f3ce67
commit 87e923613f

View File

@ -368,10 +368,10 @@ def start():
# Do a little prioritization reorder of a testable parameter list
parameters = conf.parameters.keys()
# Order of testing list (last to first)
orderList = (PLACE.URI, PLACE.GET, PLACE.POST, PLACE.CUSTOM_POST)
# Order of testing list (first to last)
orderList = (PLACE.CUSTOM_POST, PLACE.URI, PLACE.POST, PLACE.GET)
for place in orderList:
for place in orderList[::-1]:
if place in parameters:
parameters.remove(place)
parameters.insert(0, place)