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

http-request changing request to mobile #128

Closed
igorbakman opened this issue Oct 9, 2016 · 1 comment
Closed

http-request changing request to mobile #128

igorbakman opened this issue Oct 9, 2016 · 1 comment

Comments

@igorbakman
Copy link

igorbakman commented Oct 9, 2016

hi,

After trying to use your package, I've stumbled upon a peculiar issue:
I'm trying to send http requests between my servers, the request succeeds (200) but the content returned is not the one I expect.
I noticed that once I run request.body() the request turns from https://www.MY_SITE.com/blabla into https://m.MY_SITE.com/blabla.
Debuging it further in your code I noticed that the switch happens in the class com.github.kevinsawicki.http.HttpRequest in the method String header(final String name) in the line connection.getHeaderField(name)

Can you please explain this and provide a solution?

this is my dependency:
<dependency><groupId>com.github.kevinsawicki</groupId><artifactId>http-request</artifactId><version>6.0</version></dependency>

@igorbakman
Copy link
Author

internal 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

1 participant