Set version to 39

This commit is contained in:
Vinnie Falco
2017-07-20 08:12:16 -07:00
parent 9f3ec4f0be
commit 8a49eed947
3 changed files with 27 additions and 15 deletions
+8 -7
View File
@@ -185,10 +185,11 @@ build_request(detail::sec_ws_key_type& key,
req.fields, config);
}
decorator(req);
// VFALCO Use static_string here
if(! req.fields.exists("User-Agent"))
req.fields.insert("User-Agent",
std::string("Beast/") + BEAST_VERSION_STRING);
{
static_string<20> s(BEAST_VERSION_STRING);
req.fields.insert("User-Agent", s);
}
return req;
}
@@ -203,11 +204,11 @@ build_response(request_type const& req,
[&decorator](response_type& res)
{
decorator(res);
// VFALCO Use static_string here
if(! res.fields.exists("Server"))
res.fields.insert("Server",
std::string("Beast/") +
BEAST_VERSION_STRING);
{
static_string<20> s(BEAST_VERSION_STRING);
res.fields.insert("Server", s);
}
};
auto err =
[&](std::string const& text)