Skip to content

Commit 5430fa8

Browse files
Respect Rawl URL Setting for Grizzly Provider in 1.7.x branch
A backport of my prior pull request AsyncHttpClient#437 to 1.7.x
1 parent b2d2434 commit 5430fa8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/ning/http/client/providers/grizzly/GrizzlyAsyncHttpProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,8 @@ private boolean sendAsGrizzlyRequest(final Request request,
814814
httpCtx.isWSRequest = true;
815815
convertToUpgradeRequest(httpCtx);
816816
}
817-
final URI uri = httpCtx.request.getURI();
817+
final Request req = httpCtx.request;
818+
final URI uri = req.isUseRawUrl() ? req.getRawURI() : req.getURI();
818819
final HttpRequestPacket.Builder builder = HttpRequestPacket.builder();
819820
boolean secure = "https".equals(uri.getScheme());
820821
builder.method(request.getMethod());

0 commit comments

Comments
 (0)