File tree 2 files changed +4
-4
lines changed
netty3/src/main/java/org/asynchttpclient/netty/handler
netty4/src/main/java/org/asynchttpclient/netty/handler
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ protected boolean exitAfterHandlingRedirect(//
126
126
String location = responseHeaders .get (HttpHeaders .Names .LOCATION );
127
127
Uri uri = Uri .create (future .getUri (), location );
128
128
129
- if (!uri .equals (future .getUri ())) {
129
+ // if (!uri.equals(future.getUri())) {
130
130
131
131
// if we are to strictly handle 302, we should keep the
132
132
// original method (which browsers don't)
@@ -187,7 +187,7 @@ protected boolean exitAfterHandlingRedirect(//
187
187
188
188
requestSender .sendNextRequest (nextRequest , future );
189
189
return true ;
190
- }
190
+ // }
191
191
}
192
192
}
193
193
return false ;
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ protected boolean exitAfterHandlingRedirect(//
121
121
String location = responseHeaders .get (HttpHeaders .Names .LOCATION );
122
122
Uri uri = Uri .create (future .getUri (), location );
123
123
124
- if (!uri .equals (future .getUri ())) {
124
+ // if (!uri.equals(future.getUri())) {
125
125
String originalMethod = request .getMethod ();
126
126
boolean switchToGet = !originalMethod .equals ("GET" ) && (statusCode == 303 || (statusCode == 302 && !config .isStrict302Handling ()));
127
127
@@ -181,7 +181,7 @@ protected boolean exitAfterHandlingRedirect(//
181
181
}
182
182
183
183
return true ;
184
- }
184
+ // }
185
185
}
186
186
}
187
187
return false ;
You can’t perform that action at this time.
0 commit comments