Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb6e6f4

Browse files
committed
Major bug fix when the request is POST to also send the GET parameters in the request if they've been provided
1 parent 5d5bfaf commit eb6e6f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def getPage(**kwargs):
8282
conn = multipartOpener.open(url, multipart)
8383
page = conn.read()
8484
return page
85-
elif conf.method == "GET":
85+
elif conf.method in ( "GET", "POST" ):
8686
if conf.parameters.has_key("GET") and not get:
8787
get = conf.parameters["GET"]
8888

0 commit comments

Comments
 (0)