mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
* refusing lowercase and ASCII 0x23 (#) had been partially enforced before * do not casefold by default, HTTP methods are case sensitive
13 lines
224 B
Python
13 lines
224 B
Python
from gunicorn.config import Config
|
|
|
|
cfg = Config()
|
|
cfg.set("permit_unconventional_http_method", True)
|
|
|
|
request = {
|
|
"method": "-blargh",
|
|
"uri": uri("/foo"),
|
|
"version": (1, 1),
|
|
"headers": [],
|
|
"body": b""
|
|
}
|