mruby: Fix bug that response header is unexpectedly overwritten
The bug is the same bug fixed by
6deee2037d
, but in response handler.
This commit is contained in:
parent
0ba4bf51e4
commit
e098a21132
|
@ -138,8 +138,9 @@ mrb_value response_mod_header(mrb_state *mrb, mrb_value self, bool repl) {
|
|||
continue;
|
||||
}
|
||||
if (i != p) {
|
||||
headers[p++] = std::move(kv);
|
||||
headers[p] = std::move(kv);
|
||||
}
|
||||
++p;
|
||||
}
|
||||
headers.resize(p);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue