You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a response is a redirect, it gets redirected to the new location, but the HTTP method of the new request defaults to GET if the original one isn't HEAD.
AsyncHttpClient.setDataEmitter...
final String method = request.getMethod().equals(AsyncHttpHead.METHOD) ? AsyncHttpHead.METHOD : AsyncHttpGet.METHOD;
I'm not sure if this is for a reason or just a little mistake.
Also in the same method, only the "User-Agent" and "Range" headers are copied across to the new request.
The original request body is not included at all in the new request.
I've raised a pull request (#326) to address these... there may be a better way of dealing with them, but it works for me :)
The text was updated successfully, but these errors were encountered:
If a response is a redirect, it gets redirected to the new location, but the HTTP method of the new request defaults to GET if the original one isn't HEAD.
AsyncHttpClient.setDataEmitter...
final String method = request.getMethod().equals(AsyncHttpHead.METHOD) ? AsyncHttpHead.METHOD : AsyncHttpGet.METHOD;
I'm not sure if this is for a reason or just a little mistake.
Also in the same method, only the "User-Agent" and "Range" headers are copied across to the new request.
The original request body is not included at all in the new request.
I've raised a pull request (#326) to address these... there may be a better way of dealing with them, but it works for me :)
The text was updated successfully, but these errors were encountered: