fix error in check scrip output length
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user