From d2aceea3b03faaf138fdc07d6c9274c65974d137 Mon Sep 17 00:00:00 2001 From: Violeta Georgieva Date: Tue, 31 Aug 2021 09:21:56 +0300 Subject: [PATCH] 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 --- .../io/netty/handler/codec/http/multipart/DiskFileUpload.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/multipart/DiskFileUpload.java b/codec-http/src/main/java/io/netty/handler/codec/http/multipart/DiskFileUpload.java index 5184ecb6e1..cb52d8814b 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/multipart/DiskFileUpload.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/multipart/DiskFileUpload.java @@ -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