-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better BasicAuth tuple #112
Conversation
i think you should add .encode() method to BasicAuth |
also let move it to helpers.py |
OK for move to helpers. As about
So should I replace warning with TypeError/assertion or let the warning be and just wrap auth with BasicAuth before |
if auth is not BaseAuth, create new BasicAuth with *auth params everything else should go to .encode() method. |
@fafhrd91 done. I was a bit upset by Don't have any good idea how to handle this better for now. |
|
Good point about About checks there is a problem: if we move all the checks inside |
then we should fix test. test is just test. In any case BasicAuth(None, None) doesnt make any sense. |
AFAIS it uses as the way to override credentials specified in url. Some kind sentinel value to tell ClientRequest that it should ignore credentials which it extracted from url before. |
@asvetlov @popravich is BasicAuth(None, None) is valid use case for proxy connector? |
No, I think |
No description provided.