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/10 07:33:54 UTC

[07/13] httpcomponents-core git commit: Better usage help.

Better usage help.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.4.x@1794639 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/e21e8d45
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/e21e8d45
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/e21e8d45

Branch: refs/heads/4.4.x
Commit: e21e8d45d937225201aeb31c338c40624efc9951
Parents: 8b6a310
Author: Gary D. Gregory <gg...@apache.org>
Authored: Tue May 9 21:45:10 2017 +0000
Committer: Gary D. Gregory <gg...@apache.org>
Committed: Tue May 9 21:45:10 2017 +0000

----------------------------------------------------------------------
 .../examples/org/apache/http/examples/nio/NHttpReverseProxy.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/e21e8d45/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
----------------------------------------------------------------------
diff --git a/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java b/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
index 6d9f292..3bd720b 100644
--- a/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
+++ b/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
@@ -103,7 +103,7 @@ public class NHttpReverseProxy {
 
     public static void main(String[] args) throws Exception {
         if (args.length < 1) {
-            System.out.println("Usage: NHttpReverseProxy <hostname> [port]");
+            System.out.println("Usage: NHttpReverseProxy <hostname[:hostport]> [port]");
             System.exit(1);
         }
         URI uri = new URI(args[0]);