Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Return reference to response buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed Mar 14, 2019
1 parent d0f43b9 commit 8ef95d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/served/response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ response::body_size()

// ----- serialization -----

const std::string
const std::string &
response::to_buffer()
{
std::stringstream ss;
Expand Down
2 changes: 1 addition & 1 deletion src/served/response.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class response
*
* @return the HTTP response
*/
const std::string to_buffer();
const std::string & to_buffer();

// ----- stock reply -----

Expand Down

0 comments on commit 8ef95d7

Please sign in to comment.