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:
Roland Weber 2007-02-10 18:58:58 +00:00
parent 6d72866b2d
commit 6314be6638
1 changed files with 2 additions and 2 deletions

View File

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