-
Notifications
You must be signed in to change notification settings - Fork 119
FollowRedirects option is ignored #92
Comments
That's a quirk of the underlying Java library. It won't follow redirects I can add that support to the next release, but in the meantime you'll have http://stackoverflow.com/questions/1884230/urlconnection-doesnt-follow-redirect On Tuesday, February 9, 2016, Jirka Helmich [email protected]
|
Ah, OK. Thank you. I did not notice that, I was looking into options handling. |
Hi, thanks for reporting this. I just pushed a 2.3.0 release with the fix. |
I still get
|
Got it, it is strange but it must end with slash |
I've just made a PR to demonstrate what's failing: #91
Code of request:
Expected outcome: HTTP 200 with TTL
Actual outcome: HTTP 303
Response of the server (via cURL) with redirects disabled:
Response of the server (via cURL with -L option) is the expected outcome.
Btw., I forked your repo to write a test for this and start this issue with at least of a pull request of that failing test. However, I failed enormously as the test framework used by your library does not support headers in responses. Is that a wise choice?
That framework has issues section on GitHub disabled so I was not able to file an issue for that. Also, it's written in a way that the extension with headers capability is pretty hard outside of that library. To file a PR in a repo, wait for it being approved and file another PR to file an issue here is a bit complicated... So I gave up and went for filing this issue directly.
The test would be
I will be happy to fix it if you point me in some direction. I will attach what I found so far in a minute.
The text was updated successfully, but these errors were encountered: