mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
return request HTTP method to fix problem with multipart validation added
to Dispatcher in WW-4768 and JakartaMultiPartRequest in WW-4767
This commit is contained in:
+7
-1
@@ -31,6 +31,7 @@ import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.portlet.ActionRequest;
|
||||
import javax.portlet.ClientDataRequest;
|
||||
import javax.portlet.PortletContext;
|
||||
import javax.portlet.PortletRequest;
|
||||
import javax.portlet.PortletRequestDispatcher;
|
||||
@@ -161,7 +162,12 @@ public class PortletServletRequest implements HttpServletRequest {
|
||||
* @see javax.servlet.http.HttpServletRequest#getMethod()
|
||||
*/
|
||||
public String getMethod() {
|
||||
return null;
|
||||
if (portletRequest instanceof ClientDataRequest) {
|
||||
return ((ClientDataRequest) portletRequest).getMethod();
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user