File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
/* By: lcouto <[email protected] > +#+ +:+ +#+ */
7
7
/* +#+#+#+#+#+ +#+ */
8
8
/* Created: 2023/04/27 23:27:53 by lcouto #+# #+# */
9
- /* Updated: 2023/05/26 02:36:29 by lcouto ### ########.fr */
9
+ /* Updated: 2023/05/26 03:06:48 by lcouto ### ########.fr */
10
10
/* */
11
11
/* ************************************************************************** */
12
12
@@ -55,7 +55,8 @@ void Response::setRequest(Request request) { this->_request = request; }
55
55
56
56
void Response::assembleResponseString (void )
57
57
{
58
- if (!this ->_serverData ->getValue (" server_name" ).empty ())
58
+ std::vector<std::string> serverNames = this ->_serverData ->getValue (" server_name" );
59
+ if (!serverNames.empty ())
59
60
validateServerName ();
60
61
61
62
std::string responseString, headersString;
You can’t perform that action at this time.
0 commit comments