Opened 4 years ago
Closed 3 years ago
#1882 closed defect (wontfix)
Nginx does not handle asterisk in OPTIONS request
|Reported by:||Owned by:|
According to RFC 2616, this should be a valid request
OPTIONS * HTTP/1.1\r\n
Yet, if you try this, Nginx returns 400 Bad Request.
E.g. curl -X OPTIONS --request-target "*" https://nginx.org
Nginx should support the RFC and allow this type of request (even if it does absolutely nothing and returns an empty response).
Change History (1)
comment:1 by , 3 years ago
|Status:||new → closed|
Note: See TracTickets for help on using tickets.
From RFC point of view, 400 Bad Request is a valid response. Since nginx does not expect any "OPTIONS *" requests, it returns 400 (which happens automatically due to request line parsing restrictions).
While there might be practical reasons to return something different, we aren't aware of any. As such, for now it looks like nginx behaviour is valid per RFC, and there are no practical reasons to change it.