This commit is contained in:
Looly
2022-08-31 00:53:20 +08:00
parent 05bd3cca9f
commit 3bddce1a0b
4 changed files with 41 additions and 7 deletions

View File

@@ -25,7 +25,6 @@ import java.net.HttpCookie;
import java.net.URI;
import java.nio.charset.Charset;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
@@ -303,7 +302,7 @@ public class HttpServerRequest extends HttpServerBase {
* @since 5.5.8
*/
public String getParam(final String name){
return getParams().get(name, 0);
return getParams().getValue(name, 0);
}
/**
@@ -313,7 +312,7 @@ public class HttpServerRequest extends HttpServerBase {
* @return 参数值
* @since 5.5.8
*/
public List<String> getParams(final String name){
public Collection<String> getParams(final String name){
return getParams().get(name);
}