Skip to content

Commit

Permalink
check for ErrorContent instead of non-null error
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Orban <lorban@bitronix.be>
  • Loading branch information
lorban committed Jun 8, 2022
1 parent 5edfef1 commit c356e1d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -324,7 +324,7 @@ private HttpInput.Content nextTransformedContent()
{
if (_transformedContent.isSpecial() || !_transformedContent.isEmpty())
{
if (_transformedContent.getError() != null && !_error)
if (_transformedContent instanceof HttpInput.ErrorContent && !_error)
{
// In case the _rawContent was set by consumeAll(), check the httpChannel
// to see if it has a more precise error. Otherwise, the exact same
Expand All @@ -333,7 +333,7 @@ private HttpInput.Content nextTransformedContent()
HttpInput.Content refreshedRawContent = produceRawContent();
if (refreshedRawContent != null)
_rawContent = _transformedContent = refreshedRawContent;
_error = _rawContent.getError() != null;
_error = _rawContent instanceof HttpInput.ErrorContent;
if (LOG.isDebugEnabled())
LOG.debug("refreshed raw content: {} {}", _rawContent, this);
}
Expand Down

0 comments on commit c356e1d

Please sign in to comment.