~titusx/nginx/mainline

Viewing all changes in revision 6912.

  • Committer: Maxim Dounin
  • Date: 2021-06-28 15:01:20 UTC
  • Revision ID: git-v1:7587778a33bea0ce6f203a8c4de18e33f38b9582
Improved logging of invalid headers.

In 71edd9192f24 logging of invalid headers which were rejected with the
NGX_HTTP_PARSE_INVALID_HEADER error was restricted to just the "client
sent invalid header line" message, without any attempts to log the header
itself.

This patch returns logging of the header up to the invalid character and
the character itself.  The r->header_end pointer is now properly set
in all cases to make logging possible.

The same logging is also introduced when parsing headers from upstream
servers.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: