Commit 6deee203 authored by Dylan Plecki's avatar Dylan Plecki

Fix #1119: Stop overwrite of first header on mruby call to env.req.set_header(..)

parent 6761a933
...@@ -246,8 +246,9 @@ mrb_value request_mod_header(mrb_state *mrb, mrb_value self, bool repl) { ...@@ -246,8 +246,9 @@ mrb_value request_mod_header(mrb_state *mrb, mrb_value self, bool repl) {
continue; continue;
} }
if (i != p) { if (i != p) {
headers[p++] = std::move(kv); headers[p] = std::move(kv);
} }
++p;
} }
headers.resize(p); headers.resize(p);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment