Match this kind of param name to the other methods in this class (encoding -> charset).

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1489242 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2013-06-04 00:18:35 +00:00
parent 664a273374
commit 2fba1839de
1 changed files with 4 additions and 4 deletions

View File

@ -74,15 +74,15 @@ public class URLEncodedUtils {
*
* @param uri
* uri to parse
* @param encoding
* encoding to use while parsing the query
* @param charset
* charset name to use while parsing the query
*/
public static List <NameValuePair> parse (final URI uri, final String encoding) {
public static List <NameValuePair> parse (final URI uri, final String charset) {
final String query = uri.getRawQuery();
if (query != null && query.length() > 0) {
final List<NameValuePair> result = new ArrayList<NameValuePair>();
final Scanner scanner = new Scanner(query);
parse(result, scanner, encoding);
parse(result, scanner, charset);
return result;
} else {
return Collections.emptyList();