Ensure DiskFileUpload#toString returns a string that uses the correct deleteOnExit (#11628)

Motivation:
DiskFileUpload#toString should use the value provided when constructing DiskFileUpload
and not the default one

Modification:
- DiskFileUpload#toString is modified to use the correct deleteOnExit value

Result:
DiskFileUpload#toString returns a string that uses the correct deleteOnExit
This commit is contained in:
Violeta Georgieva 2021-08-31 09:21:56 +03:00 committed by Norman Maurer
parent c039f82483
commit 14102eb98c
1 changed files with 1 additions and 2 deletions

View File

@ -141,8 +141,7 @@ public class DiskFileUpload extends AbstractDiskHttpData implements FileUpload {
HttpHeaderNames.CONTENT_LENGTH + ": " + length() + "\r\n" +
"Completed: " + isCompleted() +
"\r\nIsInMemory: " + isInMemory() + "\r\nRealFile: " +
(file != null ? file.getAbsolutePath() : "null") + " DefaultDeleteAfter: " +
deleteOnExitTemporaryFile;
(file != null ? file.getAbsolutePath() : "null") + " DeleteAfter: " + deleteOnExit;
}
@Override