Fix mistake with IsHeaderRepeatable

This commit is contained in:
Justine Tunney 2021-11-12 20:54:30 -08:00
parent 98192c1079
commit 777d08a839

View file

@ -5041,7 +5041,7 @@ static int LuaIsHeaderRepeatable(lua_State *L) {
size_t n;
const char *s;
s = luaL_checklstring(L, 1, &n);
if ((h = GetHttpHeader(s, n)) == -1) {
if ((h = GetHttpHeader(s, n)) != -1) {
r = kHttpRepeatable[h];
} else {
r = false;