406015 - Query parameters and POST queries.
Fixed proxy case where the path is rewritten to be absolute.
This commit is contained in:
parent
7d5ac2918e
commit
6a47e4456f
|
@ -159,7 +159,7 @@ public class HttpConnection extends AbstractConnection implements Connection
|
|||
path = "/";
|
||||
request.path(path);
|
||||
}
|
||||
if (destination.isProxied() && HttpMethod.CONNECT != request.getMethod())
|
||||
if (destination.isProxied() && HttpMethod.CONNECT != method)
|
||||
{
|
||||
path = request.getURI().toString();
|
||||
request.path(path);
|
||||
|
|
|
@ -152,6 +152,7 @@ public class HttpRequest implements Request
|
|||
if (query != null)
|
||||
{
|
||||
this.query = query;
|
||||
params.clear();
|
||||
extractParams(query);
|
||||
}
|
||||
this.uri = buildURI();
|
||||
|
|
Loading…
Reference in New Issue