[##1064] Fix problem where the LastHttpContent was changed to HttpContent and so the end was never detected
This commit is contained in:
parent
30e7ab2f7d
commit
a03bd5105a
@ -135,6 +135,12 @@ public abstract class HttpContentDecoder extends MessageToMessageDecoder<HttpObj
|
||||
return new Object[] { header, new DefaultHttpContent(newContent),
|
||||
new DefaultLastHttpContent(lastProduct)};
|
||||
}
|
||||
} else {
|
||||
if (header == null) {
|
||||
return new Object[] { new DefaultLastHttpContent(newContent) };
|
||||
} else {
|
||||
return new Object[] { header, new DefaultLastHttpContent(newContent) };
|
||||
}
|
||||
}
|
||||
}
|
||||
if (header == null) {
|
||||
|
@ -187,6 +187,12 @@ public abstract class HttpContentEncoder extends MessageToMessageCodec<HttpMessa
|
||||
return new Object[] { header, new DefaultHttpContent(newContent),
|
||||
new DefaultLastHttpContent(lastProduct)};
|
||||
}
|
||||
} else {
|
||||
if (header == null) {
|
||||
return new Object[] { new DefaultLastHttpContent(newContent) };
|
||||
} else {
|
||||
return new Object[] { header, new DefaultLastHttpContent(newContent) };
|
||||
}
|
||||
}
|
||||
}
|
||||
if (header == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user