File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/ning/http/client/providers/netty/handler Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 15
15
16
16
import static com .ning .http .client .providers .netty .util .HttpUtils .HTTP ;
17
17
import static com .ning .http .client .providers .netty .util .HttpUtils .WEBSOCKET ;
18
- import static com .ning .http .util .AsyncHttpProviderUtils .followRedirect ;
18
+ import static com .ning .http .util .AsyncHttpProviderUtils .* ;
19
19
import static org .jboss .netty .handler .codec .http .HttpHeaders .Names .*;
20
20
import static org .jboss .netty .handler .codec .http .HttpResponseStatus .*;
21
21
@@ -160,7 +160,7 @@ protected boolean exitAfterHandlingRedirect(//
160
160
161
161
boolean redirectToSameHost = request .getUri ().getScheme ().equals (nextRequest .getUri ().getScheme ())
162
162
&& request .getUri ().getHost ().equals (nextRequest .getUri ().getHost ())
163
- && request .getUri (). getPort ( ) == nextRequest .getUri (). getPort ( );
163
+ && getDefaultPort ( request .getUri ()) == getDefaultPort ( nextRequest .getUri ());
164
164
165
165
if (redirectToSameHost ) {
166
166
future .setReuseChannel (true );
You can’t perform that action at this time.
0 commit comments