Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: UTF-8 HTTP Basic authentication (RFC-7617)
Username/password encoding in HTTP Basic authentication is broken for non-latin1 char. UTF-8 Basic authentication is allowed since RFC-7617. Previously, RFC-2616 only allowed to use ISO-8859-1 text which is basically `latin1`. CouchDB correctly encodes and decodes credentials using UTF-8: https://github.com/apache/couchdb/blob/0059b8f90e58e10b199a4b768a06a762d12a30d3/dev/pbkdf2.py#L65 aiohttp still uses `latin1` as default: https://github.com/aio-libs/aiohttp/blob/72d3d4b1f68cca5ad15ef50bffb0419b798c7f23/aiohttp/helpers.py#L139 aiocouch is made for CouchDB, and CouchDB follows RFC-7617, so I think aiocouch should follow RFC-7617 too.
- Loading branch information