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

Skip to content

Commit e3ae026

Browse files
committed
Fixes #1467
1 parent 80aca35 commit e3ae026

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
@@ -849,7 +849,7 @@ def _adjustParameter(paramString, parameter, newValue):
849849
if headers and "text/plain" in headers.get(HTTP_HEADER.CONTENT_TYPE, ""):
850850
token = page
851851

852-
if not token and any(_.name == conf.csrfToken for _ in conf.cj):
852+
if not token and conf.cj and any(_.name == conf.csrfToken for _ in conf.cj):
853853
for _ in conf.cj:
854854
if _.name == conf.csrfToken:
855855
token = _.value

0 commit comments

Comments
 (0)