You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2017/05/19 00:06:15 UTC

httpcomponents-core git commit: Fix typos in examples.

Repository: httpcomponents-core
Updated Branches:
  refs/heads/master 28cfcce90 -> 4195288ed


Fix typos in examples.

Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/4195288e
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/4195288e
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/4195288e

Branch: refs/heads/master
Commit: 4195288ed5756d64843473be87a49f15398463dc
Parents: 28cfcce
Author: Gary Gregory <gg...@apache.org>
Authored: Thu May 18 17:06:13 2017 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Thu May 18 17:06:13 2017 -0700

----------------------------------------------------------------------
 .../org/apache/hc/core5/http/examples/AsyncFileServerExample.java  | 2 +-
 .../apache/hc/core5/http/examples/ClassicFileServerExample.java    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/4195288e/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java b/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java
index 610c959..b6d74ab 100644
--- a/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java
+++ b/httpcore5/src/examples/org/apache/hc/core5/http/examples/AsyncFileServerExample.java
@@ -151,7 +151,7 @@ public class AsyncFileServerExample {
                             System.out.println("File " + file.getPath() + " not found");
                             responseTrigger.submitResponse(new BasicResponseProducer(
                                     HttpStatus.SC_NOT_FOUND,
-                                    "<html><body><h1>File" + file.getPath() +
+                                    "<html><body><h1>File " + file.getPath() +
                                             " not found</h1></body></html>",
                                     ContentType.TEXT_HTML));
 

http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/4195288e/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicFileServerExample.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicFileServerExample.java b/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicFileServerExample.java
index 1720658..4706bfc 100644
--- a/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicFileServerExample.java
+++ b/httpcore5/src/examples/org/apache/hc/core5/http/examples/ClassicFileServerExample.java
@@ -162,7 +162,7 @@ public class ClassicFileServerExample {
 
                 response.setCode(HttpStatus.SC_NOT_FOUND);
                 StringEntity outgoingEntity = new StringEntity(
-                        "<html><body><h1>File" + file.getPath() +
+                        "<html><body><h1>File " + file.getPath() +
                         " not found</h1></body></html>",
                         ContentType.create("text/html", "UTF-8"));
                 response.setEntity(outgoingEntity);