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
1a63cd94
Commit
1a63cd94
authored
Jul 11, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Pass by reference, since it just get copied there
parent
7c216c6d
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 @
1a63cd94
...
@@ -467,7 +467,7 @@ namespace {
...
@@ -467,7 +467,7 @@ namespace {
// config. We will store each host-path pattern found in |src| with
// config. We will store each host-path pattern found in |src| with
// |addr|. |addr| will be copied accordingly. Also we make a group
// |addr|. |addr| will be copied accordingly. Also we make a group
// based on the pattern. The "/" pattern is considered as catch-all.
// based on the pattern. The "/" pattern is considered as catch-all.
void
parse_mapping
(
DownstreamAddr
addr
,
const
char
*
src
)
{
void
parse_mapping
(
const
DownstreamAddr
&
addr
,
const
char
*
src
)
{
// This returns at least 1 element (it could be empty string). We
// This returns at least 1 element (it could be empty string). We
// will append '/' to all patterns, so it becomes catch-all pattern.
// will append '/' to all patterns, so it becomes catch-all pattern.
auto
mapping
=
parse_config_str_list
(
src
,
':'
);
auto
mapping
=
parse_config_str_list
(
src
,
':'
);
...
@@ -537,7 +537,7 @@ int parse_config(const char *opt, const char *optarg) {
...
@@ -537,7 +537,7 @@ int parse_config(const char *opt, const char *optarg) {
LOG
(
ERROR
)
<<
opt
<<
": ';' must not be used in pattern"
;
LOG
(
ERROR
)
<<
opt
<<
": ';' must not be used in pattern"
;
return
-
1
;
return
-
1
;
}
}
parse_mapping
(
std
::
move
(
addr
)
,
mapping
);
parse_mapping
(
addr
,
mapping
);
return
0
;
return
0
;
}
}
...
...
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