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

Skip to content

Commit 7accba4

Browse files
committed
Minor update
1 parent 0882fe0 commit 7accba4

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
@@ -749,7 +749,7 @@ def _randomizeParameter(paramString, randomParameter):
749749
get = urlencode(get, limit=True)
750750

751751
if post is not None:
752-
if place not in (PLACE.POST, PLACE.CUSTOM_POST) and hasattr(post, UNENCODED_ORIGINAL_VALUE):
752+
if place not in (PLACE.POST, PLACE.CUSTOM_POST) and '%' in getattr(post, UNENCODED_ORIGINAL_VALUE, ""):
753753
post = getattr(post, UNENCODED_ORIGINAL_VALUE)
754754
elif not skipUrlEncode and kb.postHint not in POST_HINT_CONTENT_TYPES.keys():
755755
post = urlencode(post, spaceplus=kb.postSpaceToPlus)

0 commit comments

Comments
 (0)