Nginx rejects custom HTTP Methods if not all upper-case -


if http method not upper-case, nginx rejects request , sends 400 response along internal 400 html error page.

no details shown on "error_log info"

example: link, link, search, verb, etc ... upper-case versions of work, jut mixed case.

from http 1.1 rfc;

the method token indicates method performed on resource identified request-uri. the method case-sensitive.

as far can tell, nginx doing right thing according specification. if disagree, you'll have explain think it's doing wrong more clearly.

edit: yes, agree answer @julianreschke, should return 501 status code, not 400, catch.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -