mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 21:38:00 +03:00
add: url decode, and change client_body_size var to ssize_t
This commit is contained in:
@@ -153,7 +153,7 @@ void CgiHandle::initEnvVariables()
|
||||
_variable["AUTH TYPE"] = it->second;
|
||||
else
|
||||
_variable["AUTH TYPE"] = "";
|
||||
_variable["CONTENT_LENGTH"] = toString(_request.getContentLength());
|
||||
_variable["CONTENT_LENGTH"] = toString(_request.getBody().size());
|
||||
it = _request.getClientFields().find("content-type");
|
||||
_variable["CONTENT_TYPE"] = "";
|
||||
_variable["GATEWAY_INTERFACE"] = std::string("CGI/1.1");
|
||||
|
||||
Reference in New Issue
Block a user