406015 - Query parameters and POST queries.

Fixed proxy case where the path is rewritten to be absolute.
This commit is contained in:
Simone Bordet 2013-05-05 20:33:44 +02:00
parent 7d5ac2918e
commit 6a47e4456f
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -152,6 +152,7 @@ public class HttpRequest implements Request
if (query != null)
{
this.query = query;
params.clear();
extractParams(query);
}
this.uri = buildURI();