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
fb97f596
Commit
fb97f596
authored
Aug 24, 2018
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Allocate mruby file because fopen requires NULL terminated string
parent
0ccc7a77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/shrpx_config.cc
src/shrpx_config.cc
+2
-2
No files found.
src/shrpx_config.cc
View file @
fb97f596
...
...
@@ -1057,7 +1057,7 @@ int parse_mapping(Config *config, DownstreamAddrConfig &addr,
// least one backend with mruby file, it is used for all backend
// in the group.
if
(
g
.
mruby_file
.
empty
())
{
g
.
mruby_file
=
params
.
mruby
;
g
.
mruby_file
=
make_string_ref
(
downstreamconf
.
balloc
,
params
.
mruby
)
;
}
else
if
(
g
.
mruby_file
!=
params
.
mruby
)
{
LOG
(
ERROR
)
<<
"backend: mruby: multiple different mruby file found in "
"a single group"
;
...
...
@@ -1084,7 +1084,7 @@ int parse_mapping(Config *config, DownstreamAddrConfig &addr,
g
.
affinity
.
cookie
.
secure
=
params
.
affinity
.
cookie
.
secure
;
}
g
.
redirect_if_not_tls
=
params
.
redirect_if_not_tls
;
g
.
mruby_file
=
params
.
mruby
;
g
.
mruby_file
=
make_string_ref
(
downstreamconf
.
balloc
,
params
.
mruby
)
;
if
(
pattern
[
0
]
==
'*'
)
{
// wildcard pattern
...
...
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