Skip to content

Commit

Permalink
feat: add server name to headers
Browse files Browse the repository at this point in the history
  • Loading branch information
araujo88 committed Mar 28, 2024
1 parent 0c0dc0d commit 728144b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Response::Response(std::string body, std::string content_type, unsigned int stat
response_stream << i;
}
response_stream << this->body;

this->addHeader("Server: Teapot");
this->raw = response_stream.str();
}

Expand Down

0 comments on commit 728144b

Please sign in to comment.