in _is_cgi, fix error in return http error status

+ fix error in checking script output : reverse order between calcul of content_length and erasing empty line
This commit is contained in:
Hugo LAMY
2022-08-15 01:52:36 +02:00
parent a6bfea3b56
commit b9d4317f51
3 changed files with 12 additions and 12 deletions

View File

@@ -31,11 +31,11 @@ server {
upload_dir ./www/uploaded/;
}
# location /srcs/cgi-bin/ {
# root ./srcs/cgi-bin/;
# allow_methods POST;
# cgi_ext php;
# }
location /srcs/cgi-bin/ {
root ./srcs/cgi-bin/;
allow_methods POST;
cgi_ext php;
}
location /list {
autoindex on;