Skip to content

Fix aiohttp 3.10 breaking changes for NTLM auth#1

Open
jannyware-inc wants to merge 1 commit intocesbit:masterfrom
jannyware-inc:master
Open

Fix aiohttp 3.10 breaking changes for NTLM auth#1
jannyware-inc wants to merge 1 commit intocesbit:masterfrom
jannyware-inc:master

Conversation

@jannyware-inc
Copy link

The 3.10 aiohttp now returns request data as a tuple and it was breaking NTLM auth when re-using it through response.recycle(). I was getting the error:

aiohttp\formdata.py line 117 in add_fields:
TypeError: Only io.IOBase, multidict, and (name, file) pairs allowed, use .add_field() for passing more complex parameters, got b''

The 3.10 aiohttp returns request data as a tuple and it was breaking NTLM auth. I was getting the error:

aiohttp\formdata.py line 117 in add_fields:
TypeError: Only io.IOBase, multidict, and (name, file) pairs allowed, use .add_field() for passing more complex parameters, got b''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant