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

httpGet does not render parameters correctly #829

Open
vojkny opened this issue Mar 3, 2022 · 4 comments
Open

httpGet does not render parameters correctly #829

vojkny opened this issue Mar 3, 2022 · 4 comments

Comments

@vojkny
Copy link

vojkny commented Mar 3, 2022

Bug Report

Description

Looking at the docs at https://github.com/kittinunf/fuel/blob/master/fuel/README.md:

Fuel.get("https://httpbin.org/get", listOf("foo" to "foo", "bar" to "bar"))
    .url
// https://httpbin.org/get?foo=foo&bar=bar

However as far as I can see on Fuel of version 2.3.1, the parameters are dropped and the result is:

https://httpbin.org/get

Development Machine

  • OS: Mac
  • Fuel version: 2.3.1
  • Kotlin version: 1.6.10
  • JDK 17
@vojkny
Copy link
Author

vojkny commented Mar 10, 2022

🙏

@yshrsmz
Copy link

yshrsmz commented Jul 5, 2023

https://github.com/kittinunf/fuel/blob/2.3.1/fuel/src/main/kotlin/com/github/kittinunf/fuel/core/requests/DefaultRequest.kt#L36

url is a constructor parameter of DefaultRequest, and parameters is another constructor parameter, so, that behavior kind of makes sense.

We need a method to combine those two (and other necessary fields)

@kittinunf
Copy link
Owner

I think we should move over to 3.x at this point. 2.x is end of life.

@yshrsmz
Copy link

yshrsmz commented Jul 6, 2023

True. Just wanted to add more detail to the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants