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