diff options
author | tastytea | 2020-01-09 15:54:52 +0100 |
---|---|---|
committer | tastytea | 2020-01-09 15:54:52 +0100 |
commit | 7ba967a36cead5cb79c6ef7911873cf5eae2775d (patch) | |
tree | 34dc129fe83d95424ffd32badaaf74e84f015e37 /include | |
parent | 913130b57d07a5e5e4e5be5bfc31185f9c576e8f (diff) | |
download | mastodonpp-7ba967a36cead5cb79c6ef7911873cf5eae2775d.tar mastodonpp-7ba967a36cead5cb79c6ef7911873cf5eae2775d.tar.gz mastodonpp-7ba967a36cead5cb79c6ef7911873cf5eae2775d.zip |
Fix answer_type::get_header().
The previous implementation returned a reference to an out-of-scope string.
Diffstat (limited to 'include')
-rw-r--r-- | include/answer.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/answer.hpp b/include/answer.hpp index 56a8324..b0cafdf 100644 --- a/include/answer.hpp +++ b/include/answer.hpp @@ -103,7 +103,9 @@ struct answer_type /*! * @brief Returns the value of a header field. * - * Case insensitive, only ASCII. + * Is only valid for as long as the answer_type is in scope. + * + * @param field Case insensitive, only ASCII. * * @since 0.1.0 */ |