-
Notifications
You must be signed in to change notification settings - Fork 432
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
Headers not sticking #50
Comments
I dug a little deeper and it looks like the Encoding class is overriding my headers. Looking at this class it seems that ultimately |
I put those 2 as the sane defaults. I anticipated that it would cover most of the case. However, It is true that those 2 values should be configurable. I am sorry for that. I will make some improvements in next coming release. In the meantime, can you override this at the request level? Meaning that, you could do
|
@kittinunf I tried that override but Content-Type needs to be a header not a request parameter, so it didn't work. |
Oh I am sorry. What I actually mean is that you can override httpHeader it with |
@erikthered I addressed this issue in PR #51. Thanks for reporting this. I stole your use case to become a test case 💛 |
Cool! One other suggestion I would make is to add the request level header function to the readme. I didn't even realize that function was available. |
Agree. I'll do it. |
I don't know if I'm doing something wrong here but I can't seem to get my header changes to stick.
Here's what I'm doing:
However, when I debug the Manager class' request method (around line 57) the request's headers are set to:
This is using just Fuel (not the android lib) in a Spring Boot app with the Kotlin RC
The text was updated successfully, but these errors were encountered: