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 2018/03/12 05:22:39 UTC
svn commit: r1826496 - in /httpcomponents/httpasyncclient/branches/4.1.x:
RELEASE_NOTES.txt
httpasyncclient/src/main/java/org/apache/http/nio/client/methods/HttpAsyncMethods.java
Author: ggregory
Date: Mon Mar 12 05:22:39 2018
New Revision: 1826496
URL: http://svn.apache.org/viewvc?rev=1826496&view=rev
Log:
[HTTPASYNC-135] HttpAsyncMethods.createHead() methods creates HttpGet objects.
Modified:
httpcomponents/httpasyncclient/branches/4.1.x/RELEASE_NOTES.txt
httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/nio/client/methods/HttpAsyncMethods.java
Modified: httpcomponents/httpasyncclient/branches/4.1.x/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/branches/4.1.x/RELEASE_NOTES.txt?rev=1826496&r1=1826495&r2=1826496&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/branches/4.1.x/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpasyncclient/branches/4.1.x/RELEASE_NOTES.txt Mon Mar 12 05:22:39 2018
@@ -4,6 +4,10 @@ Release 4.1.3
This is a maintenance release that fixes a number of minor issues discovered since 4.1.2 and upgrades
HttpCore and HttpClient dependencies.
+* [HTTPASYNC-135] HttpAsyncMethods.createHead() methods creates HttpGet objects.
+ Contributed by Mateusz Matela <mateusz dot matela at gmail dot>
+
+
Changelog
-------------------
Modified: httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/nio/client/methods/HttpAsyncMethods.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/nio/client/methods/HttpAsyncMethods.java?rev=1826496&r1=1826495&r2=1826496&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/nio/client/methods/HttpAsyncMethods.java (original)
+++ httpcomponents/httpasyncclient/branches/4.1.x/httpasyncclient/src/main/java/org/apache/http/nio/client/methods/HttpAsyncMethods.java Mon Mar 12 05:22:39 2018
@@ -37,6 +37,7 @@ import org.apache.http.HttpRequest;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpGet;
+import org.apache.http.client.methods.HttpHead;
import org.apache.http.client.methods.HttpOptions;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpPut;
@@ -112,7 +113,7 @@ public final class HttpAsyncMethods {
* @return asynchronous request generator
*/
public static HttpAsyncRequestProducer createHead(final URI requestURI) {
- return create(new HttpGet(requestURI));
+ return create(new HttpHead(requestURI));
}
/**
@@ -122,7 +123,7 @@ public final class HttpAsyncMethods {
* @return asynchronous request generator
*/
public static HttpAsyncRequestProducer createHead(final String requestURI) {
- return create(new HttpGet(URI.create(requestURI)));
+ return create(new HttpHead(URI.create(requestURI)));
}
/**