q = "";
try {
url = new URL(scheme, host, port, req.getContextPath() + req.getServletPath() + pi + q);
- context = new URL(scheme, host, port, req.getContextPath());
+ context = new URL(scheme, host, port, req.getContextPath() + "/");
} catch(MalformedURLException e) {
throw(new Error(e));
}
}
public MultiMap<String, String> params() {
- if(params == null) {
- params = Params.urlparams(this);
- if(method == "POST") {
- MultiMap<String, String> pp = Params.postparams(this);
- if(pp != null)
- params.putAll(pp);
- }
- }
+ if(params == null)
+ params = Params.stdparams(this);
return(params);
}