File tree Expand file tree Collapse file tree
main/java/org/apache/hc/core5/net
test/java/org/apache/hc/core5/net Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public static URIBuilder loopbackAddress() {
8787 private Charset charset ;
8888 private String fragment ;
8989 private String encodedFragment ;
90- private EncodingPolicy encodingPolicy = EncodingPolicy .RFC_3986 ;
90+ private EncodingPolicy encodingPolicy = EncodingPolicy .ALL_RESERVED ;
9191
9292 private boolean plusAsBlank ;
9393
Original file line number Diff line number Diff line change @@ -996,6 +996,7 @@ void testFragmentEncoding() throws Exception {
996996 .setScheme ("http" )
997997 .setHost ("example.com" )
998998 .setFragment (fragment )
999+ .setEncodingPolicy (URIBuilder .EncodingPolicy .RFC_3986 )
9991000 .build ();
10001001
10011002 Assertions .assertEquals (expectedEncodedFragment , uri .getRawFragment ());
@@ -1010,6 +1011,7 @@ void testCustomQueryEncoding() throws Exception {
10101011 .setScheme ("http" )
10111012 .setHost ("example.com" )
10121013 .setCustomQuery (query )
1014+ .setEncodingPolicy (URIBuilder .EncodingPolicy .RFC_3986 )
10131015 .build ();
10141016
10151017 Assertions .assertEquals (expectedEncodedQuery , uri .getRawQuery ());
You can’t perform that action at this time.
0 commit comments