Requests
Requests copied to clipboard
Basic auth not working for multiple requests
Related - #242
This is caused by the Requests_Auth_Basic::register method only hooking into curl.before_send and not curl.before_multi_add ( the first is not called by request_multiple ).
refs:
https://github.com/rmccue/Requests/blob/master/library/Requests/Auth/Basic.php#L56
https://github.com/rmccue/Requests/blob/master/library/Requests/Transport/cURL.php#L208
So we have either of two solutions, and I'm unsure which is best:
- Call
curl.before_sendwithinRequests_Transport_cURL::request_multiple - Register a hook to
curl.before_multi_addinRequests_Auth_Basic::register