Details
Description
DefaultNettyHttpBinding the uri used for request is computed as follow:
String uriForRequest = uri; if (configuration.isUseRelativePath()) { int indexOfPath = uri.indexOf((new URI(uri)).getPath()); if (indexOfPath > 0) { uriForRequest = uri.substring(indexOfPath); } }
This has some issues:
- indexOf + substring are in fact the same as what we cna achieve with new URI(uri).getPath()
- in case the path is resolved to / then the logic is wrong as in case of an uri like http://something:80/ it will end up with //something:80/