Major bug fix when the request is POST to also send the GET parameters in the request if they've been provided

This commit is contained in:
Bernardo Damele 2008-10-27 15:42:32 +00:00
parent 5d5bfaf3db
commit eb6e6f4d03

View File

@ -82,7 +82,7 @@ class Connect:
conn = multipartOpener.open(url, multipart) conn = multipartOpener.open(url, multipart)
page = conn.read() page = conn.read()
return page return page
elif conf.method == "GET": elif conf.method in ( "GET", "POST" ):
if conf.parameters.has_key("GET") and not get: if conf.parameters.has_key("GET") and not get:
get = conf.parameters["GET"] get = conf.parameters["GET"]