Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent double slashes with HTTP proxy (serenity-rs#2377)
Fixes serenity-rs#2322 Probably wouldn't have caused because double slashes are treated by HTTP servers as single slashes in my experience. After a bit of back and forth I opted not to use reqwest methods. Parsing the given proxy in `HttpBuilder` into an `Url` directly means the builder method returns `Result` (or panics) which is both ugly. Also, `Url`'s methods yield the scheme and domain both as `&str`, so we would still just have a string in the internal proxy field instead of a type-safe value. So I kept the current simple solution that gets the job done and just added the fix.
- Loading branch information