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/24 08:06:52 UTC
[5/9] httpcomponents-core git commit: Fix typos in examples.
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/33d26c3c
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/33d26c3c
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/33d26c3c
Branch: refs/heads/master
Commit: 33d26c3c2a05286682905991d63f6bb51d6bea8d
Parents: c96d1ad
Author: Gary Gregory <gg...@apache.org>
Authored: Thu May 18 17:06:13 2017 -0700
Committer: Oleg Kalnichevski <ol...@apache.org>
Committed: Fri May 19 09:21:29 2017 +0200
----------------------------------------------------------------------
.../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/33d26c3c/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/33d26c3c/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);