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
5a93bedf
Commit
5a93bedf
authored
Jan 22, 2015
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpx: Make error page modern
parent
4a0dba08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/shrpx_http.cc
src/shrpx_http.cc
+4
-5
No files found.
src/shrpx_http.cc
View file @
5a93bedf
...
...
@@ -40,16 +40,15 @@ std::string create_error_html(unsigned int status_code) {
std
::
string
res
;
res
.
reserve
(
512
);
auto
status
=
http2
::
get_status_string
(
status_code
);
res
+=
"<
html><head
><title>"
;
res
+=
"<
!DOCTYPE html><html lang=en
><title>"
;
res
+=
status
;
res
+=
"</title><
/head><
body><h1>"
;
res
+=
"</title><body><h1>"
;
res
+=
status
;
res
+=
"</h1><
hr><address
>"
;
res
+=
"</h1><
footer
>"
;
res
+=
get_config
()
->
server_name
;
res
+=
" at port "
;
res
+=
util
::
utos
(
get_config
()
->
port
);
res
+=
"</address>"
;
res
+=
"</body></html>"
;
res
+=
"</footer></body></html>"
;
return
res
;
}
...
...
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