Skip to content

Commit

Permalink
Fix #12356 Do not send keep-alive when not persistent
Browse files Browse the repository at this point in the history
updates from review
  • Loading branch information
gregw committed Oct 11, 2024
1 parent ceca26a commit bb54b21
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,8 +619,11 @@ else if (contentLength != field.getLongValue())
{
// Don't add yet, treat this only as a hint that there is content
// with a preference to chunk if we can
transferEncoding = field;
chunkedHint = field.contains(HttpHeaderValue.CHUNKED.asString());
if (transferEncoding == null)
transferEncoding = field;
else
transferEncoding = transferEncoding.withValues(field.getValues());
chunkedHint |= field.contains(HttpHeaderValue.CHUNKED.asString());
}
break;
}
Expand Down

0 comments on commit bb54b21

Please sign in to comment.