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
74ad10c3
Commit
74ad10c3
authored
May 10, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Log :authority for CONNECT request in accesslog
parent
f131705b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/shrpx_accesslog.cc
src/shrpx_accesslog.cc
+10
-2
No files found.
src/shrpx_accesslog.cc
View file @
74ad10c3
...
...
@@ -88,6 +88,14 @@ void upstream_response(const std::string& client_ip, unsigned int status_code,
char
datestr
[
64
];
get_datestr
(
datestr
);
if
(
downstream
)
{
const
char
*
path
;
if
(
downstream
->
get_request_path
().
empty
())
{
path
=
downstream
->
get_request_http2_authority
().
c_str
();
}
else
{
path
=
downstream
->
get_request_path
().
c_str
();
}
fprintf
(
stderr
,
"%s%s [%s] %u%s %d
\"
%s %s HTTP/%u.%u
\"\n
"
,
get_config
()
->
tty
?
status_code_color
(
status_code
)
:
""
,
client_ip
.
c_str
(),
datestr
,
...
...
@@ -95,7 +103,7 @@ void upstream_response(const std::string& client_ip, unsigned int status_code,
get_config
()
->
tty
?
"
\033
[0m"
:
""
,
downstream
->
get_stream_id
(),
downstream
->
get_request_method
().
c_str
(),
downstream
->
get_request_path
().
c_str
()
,
path
,
downstream
->
get_request_major
(),
downstream
->
get_request_minor
());
fflush
(
stderr
);
...
...
@@ -105,7 +113,7 @@ void upstream_response(const std::string& client_ip, unsigned int status_code,
status_code
,
downstream
->
get_stream_id
(),
downstream
->
get_request_method
().
c_str
(),
downstream
->
get_request_path
().
c_str
()
,
path
,
downstream
->
get_request_major
(),
downstream
->
get_request_minor
());
}
...
...
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