diff options
Diffstat (limited to 'src/java/nginx/unit/ForwardRequestWrapper.java')
-rw-r--r-- | src/java/nginx/unit/ForwardRequestWrapper.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/nginx/unit/ForwardRequestWrapper.java b/src/java/nginx/unit/ForwardRequestWrapper.java index f88b6aef..fe8adf8a 100644 --- a/src/java/nginx/unit/ForwardRequestWrapper.java +++ b/src/java/nginx/unit/ForwardRequestWrapper.java @@ -4,6 +4,7 @@ import java.util.List; import java.util.Map; import javax.servlet.DispatcherType; +import javax.servlet.MultipartConfigElement; import javax.servlet.RequestDispatcher; import javax.servlet.ServletRequest; import javax.servlet.http.HttpServletRequest; @@ -24,6 +25,8 @@ public class ForwardRequestWrapper implements DynamicPathRequest private final String orig_context_path; private final String orig_query; + private final MultipartConfigElement orig_multipart_config; + private final DispatcherType orig_dtype; private MultiMap<String> orig_parameters; @@ -46,6 +49,8 @@ public class ForwardRequestWrapper implements DynamicPathRequest orig_uri = request_.getRequestURI(); orig_context_path = request_.getContextPath(); orig_query = request_.getQueryString(); + + orig_multipart_config = request_.getMultipartConfig(); } @Override @@ -125,6 +130,11 @@ public class ForwardRequestWrapper implements DynamicPathRequest return request_.getFilterPath(); } + public void setMultipartConfig(MultipartConfigElement mce) + { + request_.setMultipartConfig(mce); + } + public void close() { request_.setDispatcherType(orig_dtype); @@ -137,6 +147,8 @@ public class ForwardRequestWrapper implements DynamicPathRequest request_.setParameters(orig_parameters); } + request_.setMultipartConfig(orig_multipart_config); + if (keep_attrs) { return; } |