Fix typos in Downloader.post JavaDocs

Post methods in Downloader return the result of a POST request and not the one of a GET request.
This commit is contained in:
AudricV 2022-06-18 15:44:16 +02:00 committed by Stypox
parent c953e23414
commit 65d6321e3d
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ public abstract class Downloader {
* @param headers a list of headers that will be used in the request.
* Any default headers <b>should</b> be overridden by these.
* @param dataToSend byte array that will be sent when doing the request.
* @return the result of the GET request
* @return the result of the POST request
*/
public Response post(final String url,
@Nullable final Map<String, List<String>> headers,
@ -131,7 +131,7 @@ public abstract class Downloader {
* Any default headers <b>should</b> be overridden by these.
* @param dataToSend byte array that will be sent when doing the request.
* @param localization the source of the value of the {@code Accept-Language} header
* @return the result of the GET request
* @return the result of the POST request
*/
public Response post(final String url,
@Nullable final Map<String, List<String>> headers,