fix error in check scrip output length

This commit is contained in:
Hugo LAMY
2022-08-15 02:07:06 +02:00
parent b9d4317f51
commit 9ac84f706d

View File

@@ -275,7 +275,7 @@ void Webserv::_add_script_body_length_header(std::string & output)
pos = output.find(CRLF CRLF);
if (pos != NPOS)
tmp = output.substr(pos + CRLF_SIZE);
tmp = output.substr(pos + (CRLF_SIZE * 2));
len = tmp.size();
str_len << len;