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

Skip to content

Commit 987f167

Browse files
committed
Minor update
1 parent d65d9e2 commit 987f167

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,6 @@ def processResponse(page, responseHeaders):
267267
match = re.search(regex, page)
268268
if match and PLACE.POST in conf.parameters:
269269
name, value = match.groups()
270-
conf.parameters[PLACE.POST] = re.sub("(%s=)[^&]+" % name, r"\g<1>%s" % value, conf.parameters[PLACE.POST])
270+
conf.parameters[PLACE.POST] = re.sub("(?i)(%s=)[^&]+" % name, r"\g<1>%s" % value, conf.parameters[PLACE.POST])
271271
if PLACE.POST in conf.paramDict and name in conf.paramDict[PLACE.POST]:
272272
conf.paramDict[PLACE.POST][name] = value

0 commit comments

Comments
 (0)