Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RequestBuilder::build creates a url with extra '& at the end #498

Open
hmacias-avaya opened this issue Jan 28, 2025 · 0 comments
Open

RequestBuilder::build creates a url with extra '& at the end #498

hmacias-avaya opened this issue Jan 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@hmacias-avaya
Copy link

Describe the Bug

When creating a request that contains query parameters, for example

let url = "http://something.com/get?param1=value1";
let request = Request::get(url).build().unwrap();

the request created will target http://something.com/get?param1=value1& and not the original url, http://something.com/get?param1=value1 (note there is an '&' added).

Steps to Reproduce

See code above. Also I've provided a test on the PR #497

Expected Behavior

The created request should have exactly the same url that was given as a parameter.

Actual Behavior

A '&' has been added to the end of the url.

@hmacias-avaya hmacias-avaya added the bug Something isn't working label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant