Skip to content

Commit f15a46a

Browse files
author
oleksiys
committed
[1.8.x] use getRawPath() to preserve %xx url encoded symbols
1 parent d7c930b commit f15a46a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,12 +895,12 @@ private boolean sendAsGrizzlyRequest(final Request request,
895895
builder.method(Method.CONNECT);
896896
builder.uri(AsyncHttpProviderUtils.getAuthority(uri));
897897
} else if ((secure || httpCtx.isWSRequest) && config.isUseRelativeURIsWithConnectProxies()){
898-
builder.uri(uri.getPath());
898+
builder.uri(uri.getRawPath());
899899
} else {
900900
builder.uri(uri.toString());
901901
}
902902
} else {
903-
builder.uri(uri.getPath());
903+
builder.uri(uri.getRawPath());
904904
}
905905

906906
final BodyHandler bodyHandler = isPayloadAllowed(method) ?

0 commit comments

Comments
 (0)