BUG/MINOR: htx: make sure to always initialize the HTTP method when parsing a buffer
authorWilly Tarreau <w@1wt.eu>
Mon, 13 May 2019 06:32:31 +0000 (08:32 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 13 May 2019 08:10:44 +0000 (10:10 +0200)
commitce9bbf523cbad15832f6fbe1ed1853691918dc80
tree4f0d02edec6452ed95ef6bc6e77a180c6dddd79b
parent04bcaa1f9f3fe692631e36a03f2b06d1eac8776a
BUG/MINOR: htx: make sure to always initialize the HTTP method when parsing a buffer

smp_prefetch_htx() is used when trying to access the contents of an HTTP
buffer from the TCP rulesets. The method was not properly set in this
case, which will cause the sample fetch methods relying on the method
to randomly fail in this case.

Thanks to Tim Düsterhus for reporting this issue (#97).

This fix must be backported to 1.9.
src/http_fetch.c