if (this->m_requests[clientfd].get_m_check_cgi())
return (postCGI(clientfd));
서버에서 다음과 같이 cgi 인지아닌지를 체크해줘서 CGI 처리를 하려고합니다.
void
Request::checkCGI()
{
int p;
p = this->m_uri.get_m_path().find("cgi-bin/");
if (p == 0)
this->m_check_cgi = true;
else
this->m_check_cgi = false;
}
그러나 checkCGI()는 전체 path /auth.cgi 에서 .cgi 확장자로 cgi인지를 판단하는게아닌 웹서버 폴더내에 cgi 존재여부로 판단을 합니다. 이럴경우 .cgi로 요청이 왔음에도 서버 코드에서는 일반 post 처리가 될 수 있습니다. 따라서, .cgi 확장자인지 아닌지로 cgi를 판단하는 로직을 따로 짜야되는데 request에서 처리해야하므로 이슈를 달았습니다.
서버에서 다음과 같이 cgi 인지아닌지를 체크해줘서 CGI 처리를 하려고합니다.
그러나 checkCGI()는 전체 path
/auth.cgi
에서 .cgi 확장자로 cgi인지를 판단하는게아닌 웹서버 폴더내에 cgi 존재여부로 판단을 합니다. 이럴경우 .cgi로 요청이 왔음에도 서버 코드에서는 일반 post 처리가 될 수 있습니다. 따라서, .cgi 확장자인지 아닌지로 cgi를 판단하는 로직을 따로 짜야되는데 request에서 처리해야하므로 이슈를 달았습니다.88 에 우선 추가. 먼저 Merge 필요