Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#49203 new defect (bug)

Requests::request_multiple() does not honor $auth option

Reported by: alpipego's profile alpipego Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.4
Component: HTTP API Keywords: needs-patch
Focuses: Cc:


If individual requests have an option for $auth, the authentication CURLOPTs don't get set as curl.before_send is never dispatched.

Manually setting an 'Authorization' header overcomes this limitation. I suspect this is not intended behaviour however, cf. documentation in #48349.

Change History (2)

#1 @SergeyBiryukov
4 years ago

  • Summary changed from Requests::request_mulitple() does not honor $auth option to Requests::request_multiple() does not honor $auth option

#2 @dd32
4 years ago

Requests is an external project, and this should be reported directly to the projects Github project.

Note: See TracTickets for help on using tickets.