test: add failing fixture for asterisk-form with non-OPTIONS method

This commit is contained in:
Benoit Chesneau 2026-04-19 10:37:14 +02:00
parent b90626c21e
commit 2c57071675
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,3 @@
GET * HTTP/1.1\r\n
Host: example.com\r\n
\r\n

View File

@ -0,0 +1,9 @@
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
# RFC 9112 section 3.2.4: asterisk-form ("*") only targets the server itself
# and is only valid with the OPTIONS method. Any other method must be
# rejected as an ill-formed request-line.
from gunicorn.http.errors import InvalidRequestLine
request = InvalidRequestLine