diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-11-10 02:32:34 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-11-10 02:32:34 -0500 |
commit | 291fd1e72ea21d9e695fb522f86beafe5eb92adf (patch) | |
tree | 1f6ff0f3529567d0ab4dbcf2ce2161de196e77da /src/mod_scgi.c | |
parent | 5e711068e4afb2d2b93af55f449f3af3e7170f95 (diff) | |
download | lighttpd-git-291fd1e72ea21d9e695fb522f86beafe5eb92adf.tar.gz |
[core] accept "HTTP/2.0", "HTTP/3.0" from backends (#3031)
accept "HTTP/2.0" and "HTTP/3.0" NPH from naive non-proxy backends
(thx flynn)
x-ref:
"uwsgi fails with HTTP/2"
https://redmine.lighttpd.net/issues/3031
Diffstat (limited to 'src/mod_scgi.c')
-rw-r--r-- | src/mod_scgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_scgi.c b/src/mod_scgi.c index 636662d1..33b0e497 100644 --- a/src/mod_scgi.c +++ b/src/mod_scgi.c @@ -183,7 +183,7 @@ static int scgi_env_add_uwsgi(void *venv, const char *key, size_t key_len, const size_t len; uint16_t uwlen; - if (!key || !val) return -1; + if (!key || (!val && val_len)) return -1; if (key_len > USHRT_MAX || val_len > USHRT_MAX) return -1; len = 2 + key_len + 2 + val_len; |