Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#49203 new defect (bug)

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

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

Description

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
7 years ago

  • Summary Requests::request_mulitple() does not honor $auth optionRequests::request_multiple() does not honor $auth option

#2 @dd32
7 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.