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 2017/05/09 20:01:57 UTC
[31/50] httpcomponents-core git commit: Camel-case lvar name.
Camel-case lvar name.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1792553 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/1eea0260
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/1eea0260
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/1eea0260
Branch: refs/heads/4.4.x
Commit: 1eea0260241a2854b3aa91ae8c7ac9fb269b699c
Parents: a757585
Author: Gary D. Gregory <gg...@apache.org>
Authored: Mon Apr 24 21:56:33 2017 +0000
Committer: Gary D. Gregory <gg...@apache.org>
Committed: Mon Apr 24 21:56:33 2017 +0000
----------------------------------------------------------------------
.../java/org/apache/http/protocol/RequestTargetHost.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/1eea0260/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
----------------------------------------------------------------------
diff --git a/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java b/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
index 2c5462a..54e7473 100644
--- a/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
+++ b/httpcore/src/main/java/org/apache/http/protocol/RequestTargetHost.java
@@ -70,8 +70,8 @@ public class RequestTargetHost implements HttpRequestInterceptor {
}
if (!request.containsHeader(HTTP.TARGET_HOST)) {
- HttpHost targethost = coreContext.getTargetHost();
- if (targethost == null) {
+ HttpHost targetHost = coreContext.getTargetHost();
+ if (targetHost == null) {
final HttpConnection conn = coreContext.getConnection();
if (conn instanceof HttpInetConnection) {
// Populate the context with a default HTTP host based on the
@@ -79,17 +79,17 @@ public class RequestTargetHost implements HttpRequestInterceptor {
final InetAddress address = ((HttpInetConnection) conn).getRemoteAddress();
final int port = ((HttpInetConnection) conn).getRemotePort();
if (address != null) {
- targethost = new HttpHost(address.getHostName(), port);
+ targetHost = new HttpHost(address.getHostName(), port);
}
}
- if (targethost == null) {
+ if (targetHost == null) {
if (ver.lessEquals(HttpVersion.HTTP_1_0)) {
return;
}
throw new ProtocolException("Target host missing");
}
}
- request.addHeader(HTTP.TARGET_HOST, targethost.toHostString());
+ request.addHeader(HTTP.TARGET_HOST, targetHost.toHostString());
}
}