Skip to content

Commit

Permalink
Merge pull request #152 from ilovenoah/create-pull-request/patch
Browse files Browse the repository at this point in the history
feature/formatting-by-clang-format-on-github-actions
  • Loading branch information
ilovenoah authored Mar 9, 2024
2 parents 11b739d + 9211ee6 commit 4d5a5b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/response/Response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ void Response::_setCGIResponseHeader(const bool shouldKeepAlive) {
if (utils::compCaseInsensitive(key, "Set-Cookie") == 0) {
this->_setCookies.push_back(value);
} else {
this->_headers.insert(std::pair<std::string, std::string>(key, value));
this->_headers.insert(
std::pair<std::string, std::string>(key, value));
}
}
std::streampos endPos = ss.tellg();
Expand Down Expand Up @@ -744,7 +745,9 @@ std::string Response::getEntireData() const {
iter != this->_headers.end(); ++iter) {
entireData += iter->first + ": " + iter->second + "\r\n";
}
for (std::vector<std::string>::const_iterator iter = this->_setCookies.begin(); iter != this->_setCookies.end(); ++iter) {
for (std::vector<std::string>::const_iterator iter =
this->_setCookies.begin();
iter != this->_setCookies.end(); ++iter) {
entireData += "Set-Cookie: " + *iter + "\r\n";
}
entireData += "\r\n";
Expand Down

0 comments on commit 4d5a5b5

Please sign in to comment.