[mod_deflate] fix choose encoding parse error (fixes #2981)

regression in mod_deflate in lighttpd 1.4.54

(thx ocin)

x-ref:
  "mod_deflate_choose_encoding() parse error"
  https://redmine.lighttpd.net/issues/2981
This commit is contained in:
Glenn Strauss 2019-09-07 12:02:27 -04:00
parent 06a395a93e
commit 2e7a3c0ac5
1 changed files with 1 additions and 1 deletions

View File

@ -997,7 +997,7 @@ static int mod_deflate_choose_encoding (const char *value, plugin_data *p, const
#else
for (; *value; ++value) {
const char *v;
while (*value == ' ' || *value == ',') continue;
while (*value == ' ' || *value == ',') ++value;
v = value;
while (*value!=' ' && *value!=',' && *value!=';' && *value!='\0')
++value;