mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-07 13:11:30 +08:00
test: add failing fixture for asterisk-form with non-OPTIONS method
This commit is contained in:
parent
b90626c21e
commit
2c57071675
@ -0,0 +1,3 @@
|
|||||||
|
GET * HTTP/1.1\r\n
|
||||||
|
Host: example.com\r\n
|
||||||
|
\r\n
|
||||||
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user