Commit 95e6c875 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Use mrb_ary_ref instead of mrb_ary_entry

parent da01d8de
...@@ -249,7 +249,7 @@ mrb_value request_mod_header(mrb_state *mrb, mrb_value self, bool repl) { ...@@ -249,7 +249,7 @@ mrb_value request_mod_header(mrb_state *mrb, mrb_value self, bool repl) {
if (mrb_obj_is_instance_of(mrb, values, mrb->array_class)) { if (mrb_obj_is_instance_of(mrb, values, mrb->array_class)) {
auto n = mrb_ary_len(mrb, values); auto n = mrb_ary_len(mrb, values);
for (int i = 0; i < n; ++i) { for (int i = 0; i < n; ++i) {
auto value = mrb_ary_entry(values, i); auto value = mrb_ary_ref(mrb, values, i);
req.fs.add_header_token( req.fs.add_header_token(
keyref, keyref,
make_string_ref(balloc, make_string_ref(balloc,
......
...@@ -141,7 +141,7 @@ mrb_value response_mod_header(mrb_state *mrb, mrb_value self, bool repl) { ...@@ -141,7 +141,7 @@ mrb_value response_mod_header(mrb_state *mrb, mrb_value self, bool repl) {
if (mrb_obj_is_instance_of(mrb, values, mrb->array_class)) { if (mrb_obj_is_instance_of(mrb, values, mrb->array_class)) {
auto n = mrb_ary_len(mrb, values); auto n = mrb_ary_len(mrb, values);
for (int i = 0; i < n; ++i) { for (int i = 0; i < n; ++i) {
auto value = mrb_ary_entry(values, i); auto value = mrb_ary_ref(mrb, values, i);
resp.fs.add_header_token( resp.fs.add_header_token(
keyref, keyref,
make_string_ref(balloc, make_string_ref(balloc,
......
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