From d9085e9e37669624f1e716023cd91e6aeadd3c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Br=C3=A9gier?= Date: Mon, 30 Apr 2012 12:33:10 +0300 Subject: [PATCH] Fix in addContent when switching from MemoryAttribute if it is done when last buffer added, in order to not close immediately the underlying file before adding the last buffer. --- .../main/java/io/netty/handler/codec/http/MixedFileUpload.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/MixedFileUpload.java b/codec-http/src/main/java/io/netty/handler/codec/http/MixedFileUpload.java index 6f0146cb37..b1a1350616 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/MixedFileUpload.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/MixedFileUpload.java @@ -58,7 +58,7 @@ public class MixedFileUpload implements FileUpload { definedSize); if (((MemoryFileUpload) fileUpload).getChannelBuffer() != null) { diskFileUpload.addContent(((MemoryFileUpload) fileUpload) - .getChannelBuffer(), last); + .getChannelBuffer(), false); } fileUpload = diskFileUpload; }