summaryrefslogtreecommitdiff
path: root/src/mod_ajp13.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2023-04-26 00:50:02 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2023-05-03 23:11:35 -0400
commitcc3814db536cd3f6e3701d0949f1f29337fd8424 (patch)
tree77732a51294f1e189f1f2aa4e2ca14ff7d79ad59 /src/mod_ajp13.c
parent8277111dbe7afe77ce760138639a014de5ae6307 (diff)
downloadlighttpd-git-cc3814db536cd3f6e3701d0949f1f29337fd8424.tar.gz
[core] rename http_kv funcs, reorder http_versions
rename http_kv funcs for consistency ("http_" prefix) reorder http_versions[]
Diffstat (limited to 'src/mod_ajp13.c')
-rw-r--r--src/mod_ajp13.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_ajp13.c b/src/mod_ajp13.c
index 8bed8df7..65dc1905 100644
--- a/src/mod_ajp13.c
+++ b/src/mod_ajp13.c
@@ -583,8 +583,8 @@ ajp13_create_env (handler_ctx * const hctx)
if (0 == method_byte) break;
x[5] = method_byte;
/* protocol */
- const char * const proto = get_http_version_name(r->http_version);
- n = ajp13_enc_string(x, n, proto, strlen(proto));
+ const buffer * const proto = http_version_buf(r->http_version);
+ n = ajp13_enc_string(x, n, BUF_PTR_LEN(proto));
if (0 == n) break;
/* req_uri */
n = ajp13_enc_string(x, n, BUF_PTR_LEN(&r->uri.path));