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 GitHub
parent 5c842dd89f
commit d2aceea3b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,8 +138,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