Fix HttpSnoopClient. See #183
This commit is contained in:
parent
9b563c8a28
commit
4636309597
@ -83,7 +83,7 @@ public class HttpSnoopClient {
|
|||||||
|
|
||||||
// Prepare the HTTP request.
|
// Prepare the HTTP request.
|
||||||
HttpRequest request = new DefaultHttpRequest(
|
HttpRequest request = new DefaultHttpRequest(
|
||||||
HttpVersion.HTTP_1_1, HttpMethod.GET, uri.toASCIIString());
|
HttpVersion.HTTP_1_1, HttpMethod.GET, uri.getRawPath());
|
||||||
request.setHeader(HttpHeaders.Names.HOST, host);
|
request.setHeader(HttpHeaders.Names.HOST, host);
|
||||||
request.setHeader(HttpHeaders.Names.CONNECTION, HttpHeaders.Values.CLOSE);
|
request.setHeader(HttpHeaders.Names.CONNECTION, HttpHeaders.Values.CLOSE);
|
||||||
request.setHeader(HttpHeaders.Names.ACCEPT_ENCODING, HttpHeaders.Values.GZIP);
|
request.setHeader(HttpHeaders.Names.ACCEPT_ENCODING, HttpHeaders.Values.GZIP);
|
||||||
|
Loading…
Reference in New Issue
Block a user