Skip to content

Commit cced1d4

Browse files
author
Stephane Landelle
committed
Fixed omit query, backport AsyncHttpClient#578
1 parent 91ea232 commit cced1d4

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
@@ -2035,7 +2035,7 @@ private final String computeRealmURI(Realm realm, URI requestURI) throws URISynt
20352035
return requestURI.toString();
20362036
}
20372037
} else {
2038-
if (realm.isOmitQuery() && MiscUtil.isNonEmpty(requestURI.getQuery())) {
2038+
if (realm.isOmitQuery() || !MiscUtil.isNonEmpty(requestURI.getQuery())) {
20392039
return requestURI.getPath();
20402040
} else {
20412041
return requestURI.getPath() + "?" + requestURI.getQuery();

0 commit comments

Comments
 (0)