Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
95e6c875
Commit
95e6c875
authored
Nov 03, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Use mrb_ary_ref instead of mrb_ary_entry
parent
da01d8de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/shrpx_mruby_module_request.cc
src/shrpx_mruby_module_request.cc
+1
-1
src/shrpx_mruby_module_response.cc
src/shrpx_mruby_module_response.cc
+1
-1
No files found.
src/shrpx_mruby_module_request.cc
View file @
95e6c875
...
...
@@ -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
))
{
auto
n
=
mrb_ary_len
(
mrb
,
values
);
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
(
keyref
,
make_string_ref
(
balloc
,
...
...
src/shrpx_mruby_module_response.cc
View file @
95e6c875
...
...
@@ -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
))
{
auto
n
=
mrb_ary_len
(
mrb
,
values
);
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
(
keyref
,
make_string_ref
(
balloc
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment