Merge pull request #1120 from dylanplecki/issue-1119-mruby-header-overwrite
Fix #1119: Overwrite of first header on mruby call to env.req.set_header(..)
This commit is contained in:
commit
0ba4bf51e4
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue