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
d0271a90
Commit
d0271a90
authored
Nov 10, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttpd: Use util::utos instead of slow util::to_str
parent
20ffe2b2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
src/HttpServer.cc
src/HttpServer.cc
+1
-1
src/util.h
src/util.h
+0
-8
No files found.
src/HttpServer.cc
View file @
d0271a90
...
...
@@ -613,7 +613,7 @@ int Http2Handler::submit_file_response(const std::string& status,
nghttp2_data_provider
*
data_prd
)
{
std
::
string
date_str
=
util
::
http_date
(
time
(
0
));
std
::
string
content_length
=
util
::
to_str
(
file_length
);
std
::
string
content_length
=
util
::
utos
(
file_length
);
std
::
string
last_modified_str
;
auto
nva
=
std
::
vector
<
nghttp2_nv
>
{
http2
::
make_nv_ls
(
":status"
,
status
),
...
...
src/util.h
View file @
d0271a90
...
...
@@ -212,14 +212,6 @@ std::string http_date(time_t t);
time_t
parse_http_date
(
const
std
::
string
&
s
);
template
<
typename
T
>
std
::
string
to_str
(
T
value
)
{
std
::
stringstream
ss
;
ss
<<
value
;
return
ss
.
str
();
}
template
<
typename
InputIterator1
,
typename
InputIterator2
>
bool
startsWith
(
InputIterator1
first1
,
...
...
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