Skip to content

Commit 7009cad

Browse files
author
Stephane Landelle
committed
NettyAsyncHttpProvider not following redirect to lower-cased path, backport #127
1 parent a7601bb commit 7009cad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,7 @@ private boolean redirect(Request request,
20692069
String location = response.getHeader(HttpHeaders.Names.LOCATION);
20702070
URI uri = AsyncHttpProviderUtils.getRedirectUri(future.getURI(), location);
20712071
boolean stripQueryString = config.isRemoveQueryParamOnRedirect();
2072-
if (!uri.toString().equalsIgnoreCase(future.getURI().toString())) {
2072+
if (!uri.toString().equals(future.getURI().toString())) {
20732073
final RequestBuilder nBuilder = stripQueryString ?
20742074
new RequestBuilder(future.getRequest()).setQueryParameters(null)
20752075
: new RequestBuilder(future.getRequest());

0 commit comments

Comments
 (0)