Skip to content

Commit 3c36fd0

Browse files
committed
Clarify that Connection.postDataCharset is the request body encoding
1 parent 63023f8 commit 3c36fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/jsoup/Connection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ <p>For GET requests, data parameters will be sent on the request query string. F
352352
Connection parser(Parser parser);
353353

354354
/**
355-
* Set the character-set used to encode for x-www-form-urlencoded post data. Defaults to {@code UTF-8}.
356-
* @param charset character set to encode post data
355+
* Set the character-set used to encode the request body. Defaults to {@code UTF-8}.
356+
* @param charset character set to encode the request body
357357
* @return this Connection, for chaining
358358
*/
359359
Connection postDataCharset(String charset);

0 commit comments

Comments
 (0)