You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2007/10/18 20:32:49 UTC
svn commit: r586057 -
/jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java
Author: olegk
Date: Thu Oct 18 11:32:49 2007
New Revision: 586057
URL: http://svn.apache.org/viewvc?rev=586057&view=rev
Log:
Linking parameters of the request instead of the response. A silly cut-n-paste mistake on my part.
Modified:
jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java
Modified: jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java?rev=586057&r1=586056&r2=586057&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java (original)
+++ jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java Thu Oct 18 11:32:49 2007
@@ -147,7 +147,7 @@
if (((HttpEntityEnclosingRequest) request).expectContinue()) {
response = this.responseFactory.newHttpResponse(ver,
HttpStatus.SC_CONTINUE, context);
- HttpParamsLinker.link(request, this.params);
+ HttpParamsLinker.link(response, this.params);
if (this.expectationVerifier != null) {
try {
@@ -155,7 +155,7 @@
} catch (HttpException ex) {
response = this.responseFactory.newHttpResponse(HttpVersion.HTTP_1_0,
HttpStatus.SC_INTERNAL_SERVER_ERROR, context);
- HttpParamsLinker.link(request, this.params);
+ HttpParamsLinker.link(response, this.params);
handleException(ex, response);
}
}
@@ -174,7 +174,7 @@
if (response == null) {
response = this.responseFactory.newHttpResponse(ver, HttpStatus.SC_OK, context);
- HttpParamsLinker.link(request, this.params);
+ HttpParamsLinker.link(response, this.params);
context.setAttribute(ExecutionContext.HTTP_REQUEST, request);
context.setAttribute(ExecutionContext.HTTP_RESPONSE, response);