Unverified Commit 0ba4bf51 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa Committed by GitHub

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(..)
parents 6761a933 6deee203
......@@ -246,8 +246,9 @@ mrb_value request_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);
}
......
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