Commit 0095ba89 by Michael Hartle

Fixed an issue where the pre FormBodyWrapperFilter adds multiples of every…

Fixed an issue where the pre FormBodyWrapperFilter adds multiples of every multipart part to a request
parent afb43c58
......@@ -184,10 +184,10 @@ public class FormBodyWrapperFilter extends ZuulFilter {
MultipartRequest multi = (MultipartRequest) this.request;
for (Entry<String, List<MultipartFile>> parts : multi
.getMultiFileMap().entrySet()) {
for (Part file : this.request.getParts()) {
for (MultipartFile file : parts.getValue()) {
HttpHeaders headers = new HttpHeaders();
headers.setContentDispositionFormData(file.getName(),
file.getSubmittedFileName());
file.getOriginalFilename());
if (file.getContentType() != null) {
headers.setContentType(
MediaType.valueOf(file.getContentType()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment