Commit 9adfd088 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

asio_http2_handler: Use util::utos instead of std::to_string

parent 2e3419cc
...@@ -795,7 +795,7 @@ int http2_handler::start_response(http2_stream& stream) ...@@ -795,7 +795,7 @@ int http2_handler::start_response(http2_stream& stream)
auto& headers = res.headers(); auto& headers = res.headers();
auto nva = std::vector<nghttp2_nv>(); auto nva = std::vector<nghttp2_nv>();
nva.reserve(2 + headers.size()); nva.reserve(2 + headers.size());
auto status = std::to_string(res.status_code()); auto status = util::utos(res.status_code());
auto date = cached_date; auto date = cached_date;
nva.push_back(nghttp2::http2::make_nv_ls(":status", status)); nva.push_back(nghttp2::http2::make_nv_ls(":status", status));
nva.push_back(nghttp2::http2::make_nv_ls("date", *date)); nva.push_back(nghttp2::http2::make_nv_ls("date", *date));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment