From 65d6321e3df36bdd3e5bf0c0ee7c8a0978dbc914 Mon Sep 17 00:00:00 2001
From: AudricV <74829229+AudricV@users.noreply.github.com>
Date: Sat, 18 Jun 2022 15:44:16 +0200
Subject: [PATCH] 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.
---
.../org/schabi/newpipe/extractor/downloader/Downloader.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/downloader/Downloader.java b/extractor/src/main/java/org/schabi/newpipe/extractor/downloader/Downloader.java
index 75d0bbf8..8e3b137d 100644
--- a/extractor/src/main/java/org/schabi/newpipe/extractor/downloader/Downloader.java
+++ b/extractor/src/main/java/org/schabi/newpipe/extractor/downloader/Downloader.java
@@ -112,7 +112,7 @@ public abstract class Downloader {
* @param headers a list of headers that will be used in the request.
* Any default headers should 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> headers,
@@ -131,7 +131,7 @@ public abstract class Downloader {
* Any default headers should 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> headers,