flush..
This commit is contained in:
parent
d820d3d18b
commit
12367d63c6
@ -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(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user