chughes741 / webserv

HTTP server written in C++
2 stars 0 forks source link

Implement CGI for GET request #96

Closed chughes741 closed 10 months ago

chughes741 commented 1 year ago

Currently the GET handler in server.cpp doesn't support CGI files.

bool HttpServer::getMethod(HttpRequest &request, HttpResponse &response,
                           ServerConfig &server, LocationConfig *location) {
...
}

If the URI is a CGI request it needs to call the CGI handler.