1
0
mirror of http://git.haproxy.org/git/haproxy.git/ synced 2025-04-26 12:58:03 +00:00

BUG/MINOR: http: Add OPTIONS in supported http methods (found by find_http_meth)

The 'OPTIONS' method was not in the list of supported HTTP methods and
find_http_meth return HTTP_METH_OTHER instead of HTTP_METH_OPTIONS.

[wt: this fix needs to be backported at least to 1.5, 1.4 and 1.3]
This commit is contained in:
Christopher Faulet 2015-07-31 14:26:57 +02:00 committed by Willy Tarreau
parent 3c3a035be0
commit d57ad64873

View File

@ -458,6 +458,9 @@ const struct http_method_desc http_methods[26][3] = {
['H' - 'A'] = {
[0] = { .meth = HTTP_METH_HEAD , .len=4, .text="HEAD" },
},
['O' - 'A'] = {
[0] = { .meth = HTTP_METH_OPTIONS , .len=7, .text="OPTIONS" },
},
['P' - 'A'] = {
[0] = { .meth = HTTP_METH_POST , .len=4, .text="POST" },
[1] = { .meth = HTTP_METH_PUT , .len=3, .text="PUT" },