Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Manually encode Authorization header for eventsource_client (#2284)
## Linked Issues/PRs This PR is a band-aid fix; #2283 suggests alternatives to `eventsource_client`. ## Description <!-- List of detailed changes --> `eventsource_client` (and `hyper` under the hood) do not pass `username:password` from the URL into the `Authorization` header. This PR adds the header manually, encoding the credentials as base64 per the [Basic HTTP Authentication RFC](https://datatracker.ietf.org/doc/html/rfc7617#section-2). ## Checklist - [x] Breaking changes are clearly marked as such in the PR description and changelog - [ ] New behavior is reflected in tests - [x] [The specification](https://github.com/FuelLabs/fuel-specs/) matches the implemented behavior (link update PR if changes are needed) ### Before requesting review - [x] I have reviewed the code myself - [x] I have created follow-up issues caused by this PR and linked them here ### After merging, notify other teams [Add or remove entries as needed] - [ ] [Rust SDK](https://github.com/FuelLabs/fuels-rs/) --------- Co-authored-by: Green Baneling <XgreenX9999@gmail.com>
- Loading branch information