flush..
This commit is contained in:
1 parent
d820d3d18b
commit
12367d63c6
3 files changed
+3
-1
No files matched your search
@@ -85,7 +85,7 @@ public class InputStreamBody extends AbstractContentBody {
|
||||
}
|
||||
|
||||
public long getContentLength() {
|
||||
return contentLength;
|
||||
return this.contentLength;
|
||||
}
|
||||
|
||||
public String getFilename() {
|
||||
|
||||
@@ -165,5 +165,6 @@ public class MultipartEntity implements HttpEntity {
|
||||
|
||||
public void writeTo(final OutputStream outstream) throws IOException {
|
||||
this.multipart.writeTo(outstream);
|
||||
outstream.flush();
|
||||
}
|
||||
}
|
||||
@@ -145,6 +145,7 @@ public class Netty4HttpClient extends AbstractHttpClient {
|
||||
ByteBuf byteBuf = ByteBufAllocator.DEFAULT.buffer();
|
||||
ByteBufOutputStream out = new ByteBufOutputStream(byteBuf);
|
||||
entity.writeTo(out);
|
||||
out.flush();
|
||||
out.close();
|
||||
uriRequest = new DefaultFullHttpRequest(
|
||||
uriRequest.getProtocolVersion(), uriRequest.getMethod(),
|
||||
|
||||
Reference in new issue
Block a user