[prev in list] [next in list] [prev in thread] [next in thread]
List: httpcomponents-commits
Subject: [httpcomponents-core] branch master updated: The official document POST example incorrectly calls th
From: olegk () apache ! org
Date: 2023-02-17 9:36:16
Message-ID: 167662657630.642621.16064822455580816632 () gitbox2-he-fi ! apache ! org
[Download RAW message or body]
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
The following commit(s) were added to refs/heads/master by this push:
new b26a55907 The official document POST example incorrectly calls the GET \
method. For beginners, it is necessary to revise b26a55907 is described below
commit b26a559078d15dc00e387eea4b824391e3bef590
Author: hooyantsing <huyanqing@ebupt.com>
AuthorDate: Fri Feb 17 15:34:41 2023 +0800
The official document POST example incorrectly calls the GET method. For \
beginners, it is necessary to revise
---
.../org/apache/hc/core5/http/examples/ClassicPostExecutionExample.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/httpcore5/src/test/java/org/apache/hc/core5/http/examples/ClassicPostExecutionExample.java \
b/httpcore5/src/test/java/org/apache/hc/core5/http/examples/ClassicPostExecutionExample.java
index fa79ae635..e574def45 100644
--- a/httpcore5/src/test/java/org/apache/hc/core5/http/examples/ClassicPostExecutionExample.java
+++ b/httpcore5/src/test/java/org/apache/hc/core5/http/examples/ClassicPostExecutionExample.java
@@ -106,7 +106,7 @@ public class ClassicPostExecutionExample {
final String requestUri = "/post";
for (int i = 0; i < requestBodies.length; i++) {
- final ClassicHttpRequest request = ClassicRequestBuilder.get()
+ final ClassicHttpRequest request = ClassicRequestBuilder.post()
.setHttpHost(target)
.setPath(requestUri)
.build();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic