more script tests
+ add cgi checks for error in script output + fix script_path relative to absolute + cgi makefile more efficient
This commit is contained in:
@@ -6,13 +6,16 @@ int main (int ac, char **av, char ** env)
|
||||
std::string http_header;
|
||||
std::string http_body;
|
||||
std::string http_status;
|
||||
std::string rq_body;
|
||||
|
||||
std::cin >> rq_body;
|
||||
|
||||
(void)ac;
|
||||
(void)av;
|
||||
|
||||
fill_response_basic(env, http_body, http_header);
|
||||
fill_response_basic(env, http_body, http_header, rq_body);
|
||||
|
||||
http_status = get_value("Status");
|
||||
http_status = get_value("Status", rq_body);
|
||||
http_header += "Status: " + http_status;
|
||||
|
||||
std::cout << http_header << CRLF CRLF << http_body;
|
||||
|
||||
Reference in New Issue
Block a user