WordPress.org

Make WordPress Core

Opened 9 months ago

Last modified 9 months ago

#49203 new defect (bug)

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

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

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
9 months ago

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

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