File tree 1 file changed +2
-6
lines changed
client/src/main/java/org/asynchttpclient/uri
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ private void removeTrailingDot() {
243
243
path = path .substring (0 , path .length () - 1 );
244
244
}
245
245
246
- private void initRelativePath () {
246
+ private void handleRelativePath () {
247
247
int lastSlashPosition = path .lastIndexOf ('/' );
248
248
String pathEnd = urlWithoutQuery .substring (start , end );
249
249
@@ -286,11 +286,6 @@ private void parseAuthority() {
286
286
}
287
287
}
288
288
289
- private void handleRelativePath () {
290
- initRelativePath ();
291
- handlePathDots ();
292
- }
293
-
294
289
private void computeRegularPath () {
295
290
if (urlWithoutQuery .charAt (start ) == '/' )
296
291
path = urlWithoutQuery .substring (start , end );
@@ -302,6 +297,7 @@ else if (isNonEmpty(path))
302
297
String pathEnd = urlWithoutQuery .substring (start , end );
303
298
path = authority != null ? "/" + pathEnd : pathEnd ;
304
299
}
300
+ handlePathDots ();
305
301
}
306
302
307
303
private void computeQueryOnlyPath () {
You can’t perform that action at this time.
0 commit comments