-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter Requests library to use the Fetch handler. (#1048)
As the 'http_api_transports' filter is deprecated and no longer actively used, this filters the Requests library to always use the Fetch transport. ## What problem is it solving? When the kitchen sink is enabled (ie. streams extension) Requests is using that for HTTP requests, rather than using the Fetch transport (and does not automatically fallback to it). ## How is the problem addressed? Filters the Requests internals to always use the transport. ## Testing Instructions 1. Load with kitchen sink 2. Observe failing requests, and no attempt to use Fetch 3. Apply Patch 4. Load with kitchen sink 5. Observe requests succeed (or fail with CORS issues via fetch). Fixes #1047 --------- Co-authored-by: Adam Zieliński <adam@adamziel.com>
- Loading branch information
Showing
1 changed file
with
33 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters