Fixed issue: NETTY-308 ChunkedInput implementations send only the first chunk
This commit is contained in:
parent
cac77a47b2
commit
d0d2519871
@ -130,7 +130,7 @@ public class ChunkedFile implements ChunkedInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isEndOfInput() throws Exception {
|
public boolean isEndOfInput() throws Exception {
|
||||||
return hasNextChunk();
|
return !hasNextChunk();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close() throws Exception {
|
public void close() throws Exception {
|
||||||
|
@ -136,7 +136,7 @@ public class ChunkedNioFile implements ChunkedInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isEndOfInput() throws Exception {
|
public boolean isEndOfInput() throws Exception {
|
||||||
return hasNextChunk();
|
return !hasNextChunk();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close() throws Exception {
|
public void close() throws Exception {
|
||||||
|
@ -97,7 +97,7 @@ public class ChunkedNioStream implements ChunkedInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isEndOfInput() throws Exception {
|
public boolean isEndOfInput() throws Exception {
|
||||||
return hasNextChunk();
|
return !hasNextChunk();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close() throws Exception {
|
public void close() throws Exception {
|
||||||
|
@ -85,7 +85,7 @@ public class ChunkedStream implements ChunkedInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isEndOfInput() throws Exception {
|
public boolean isEndOfInput() throws Exception {
|
||||||
return hasNextChunk();
|
return !hasNextChunk();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close() throws Exception {
|
public void close() throws Exception {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user