Skip to content

Commit 399fe26

Browse files
committed
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.
1 parent f57049d commit 399fe26

File tree

1 file changed

+2
-2
lines changed
  • extractor/src/main/java/org/schabi/newpipe/extractor/downloader

1 file changed

+2
-2
lines changed

extractor/src/main/java/org/schabi/newpipe/extractor/downloader/Downloader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public Response head(final String url, @Nullable final Map<String, List<String>>
112112
* @param headers a list of headers that will be used in the request.
113113
* Any default headers <b>should</b> be overridden by these.
114114
* @param dataToSend byte array that will be sent when doing the request.
115-
* @return the result of the GET request
115+
* @return the result of the POST request
116116
*/
117117
public Response post(final String url,
118118
@Nullable final Map<String, List<String>> headers,
@@ -131,7 +131,7 @@ public Response post(final String url,
131131
* Any default headers <b>should</b> be overridden by these.
132132
* @param dataToSend byte array that will be sent when doing the request.
133133
* @param localization the source of the value of the {@code Accept-Language} header
134-
* @return the result of the GET request
134+
* @return the result of the POST request
135135
*/
136136
public Response post(final String url,
137137
@Nullable final Map<String, List<String>> headers,

0 commit comments

Comments
 (0)