]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: always reject the "PRI" method
authorWilly Tarreau <w@1wt.eu>
Fri, 10 Nov 2017 18:38:10 +0000 (19:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 Nov 2017 18:38:10 +0000 (19:38 +0100)
commit916597903cc0e1022db33e01dd832aee76218b99
treec5f7ba00642546fa0b3e5a9e0f2df42e625ad598
parent387bd4f69f675d7e35895ce35d04a8270eec45b6
MEDIUM: http: always reject the "PRI" method

This method was reserved for the HTTP/2 connection preface, must never
be used and must be rejected. In normal situations it doesn't happen,
but it may be visible if a TCP frontend has alpn "h2" enabled, and
forwards to an HTTP backend which tries to parse the request. Before
this patch it would pass the wrong request to the backend server, now
it properly returns 400 bad req.

This patch should probably be backported to stable versions.
src/proto_http.c