mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
You can now pass the parameter --limit-request-line or set the limit_request_line in your configuration file to set the max size of the request line in bytes. This parameter is used to limit the allowed size of a client's HTTP request-line. Since the request-line consists of the HTTP method, URI, and protocol version, this directive places a restriction on the length of a request-URI allowed for a request on the server. A server needs this value to be large enough to hold any of its resource names, including any information that might be passed in the query part of a GET request. By default this value is 4094 and can't be larger than 8190. This parameter can be used to prevent any DDOS attack.
7 lines
149 B
HTTP
7 lines
149 B
HTTP
PUT /stuff/here?foo=bar HTTP/1.0\r\n
|
|
Server: http://127.0.0.1:5984\r\n
|
|
Content-Type: application/json\r\n
|
|
Content-Length: 14\r\n
|
|
\r\n
|
|
{"nom": "nom"}
|