From c6cddc83c4e626267a32c5c35d7c7d3549a16628 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sat, 27 May 2017 10:23:17 -0700 Subject: [PATCH] Fix header::reason --- CHANGELOG.md | 2 ++ include/beast/http/message.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c9fbe68..309f8352 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ Version 45 * Workaround for boost::asio::basic_streambuf type check * Fix message doc image * Better test::enable_yield_to +* Add test::pipe +* Fix header::reason -------------------------------------------------------------------------------- diff --git a/include/beast/http/message.hpp b/include/beast/http/message.hpp index 3353cdd7..d1a6d2fd 100644 --- a/include/beast/http/message.hpp +++ b/include/beast/http/message.hpp @@ -246,7 +246,7 @@ struct header */ auto reason() const -> - decltype(std::declval().method()) const + decltype(std::declval().reason()) const { return fields.reason(); }