~yadi/squid/parser-ng-bug2043

Viewing all changes in revision 13933.

  • Committer: Amos Jeffries
  • Date: 2015-02-28 10:00:33 UTC
  • Revision ID: squid3@treenet.co.nz-20150228100033-munt9d12i40yepl4
Detect 1-byte LF buffer

After Parser-NG upgrades the mime headers buffer omits the first-line
including terminator. A request with no mime content may be a buffer
with only 1 LF byte. The other cases including 2-byte buffers are
already handled within the while-loop.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: