HTTPCORE-39
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@505745 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6d72866b2d
commit
6314be6638
|
@ -90,7 +90,7 @@ public class TestDefaultResponseConsumedWatcher extends TestCase {
|
|||
entity.setContentLength(data.length);
|
||||
entity.setContent(new ByteArrayInputStream(data));
|
||||
|
||||
HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_0, 200);
|
||||
HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_0, 200, "OK");
|
||||
response.addHeader("Connection", "Close");
|
||||
response.setParams(new DefaultHttpParams(null));
|
||||
response.setEntity(entity);
|
||||
|
@ -113,7 +113,7 @@ public class TestDefaultResponseConsumedWatcher extends TestCase {
|
|||
entity.setContentLength(data.length);
|
||||
entity.setContent(new ByteArrayInputStream(data));
|
||||
|
||||
HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, 200);
|
||||
HttpResponse response = new BasicHttpResponse(HttpVersion.HTTP_1_1, 200, "OK");
|
||||
response.addHeader("Connection", "Keep-alive");
|
||||
response.setParams(new DefaultHttpParams(null));
|
||||
response.setEntity(entity);
|
||||
|
|
Loading…
Reference in New Issue