diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-11-15 16:43:06 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-11-17 21:51:57 -0500 |
commit | f350681ff0aaadae05d28a088807d20e57ab4e4b (patch) | |
tree | 8fa30537c62fbdb69a126b8321e4090e6aac51dc /src/http_kv.c | |
parent | bab0e5d08472fcb9e5dcbf01a86d887574ed826d (diff) | |
download | lighttpd-git-f350681ff0aaadae05d28a088807d20e57ab4e4b.tar.gz |
[core] get_http_method_key() tweak
Diffstat (limited to 'src/http_kv.c')
-rw-r--r-- | src/http_kv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http_kv.c b/src/http_kv.c index 673ea1f1..24ce0392 100644 --- a/src/http_kv.c +++ b/src/http_kv.c @@ -187,7 +187,7 @@ int get_http_version_key(const char *s, size_t slen) { http_method_t get_http_method_key(const char *s, const size_t slen) { if (slen == 3 && s[0] == 'G' && s[1] == 'E' && s[2] == 'T') return HTTP_METHOD_GET; - const buffer *kv = http_methods; + const buffer *kv = http_methods+1; /*(step over http_methods[0] ("GET"))*/ while (kv->used && (kv->used-1 != slen || 0 != memcmp(kv->ptr, s, slen))) ++kv; const uint_fast32_t i = kv - http_methods; |