提交 ac543210 编写于 作者: Z zentol

[FLINK-9769][rest] Clear FileUpload attribute after access

This closes #6270.
上级 b346961a
......@@ -188,7 +188,7 @@ public class FileUploadHandler extends SimpleChannelInboundHandler<HttpObject> {
}
public static FileUploads getMultipartFileUploads(ChannelHandlerContext ctx) {
return Optional.ofNullable(ctx.channel().attr(UPLOADED_FILES).get())
return Optional.ofNullable(ctx.channel().attr(UPLOADED_FILES).getAndRemove())
.orElse(FileUploads.EMPTY);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册