fix for tester
This commit is contained in:
parent
10db3e58a6
commit
4687b40fc2
@ -22,7 +22,7 @@ CgiEnvironment::CgiEnvironment(const URI &uri, const HttpRequest &request)
|
||||
env_["SCRIPT_FILENAME"] = uri.getFullPath(); // Full filesystem path to the script (required by PHP)
|
||||
env_["QUERY_STRING"] = uri.getQuery();
|
||||
env_["REQUEST_URI"] = request.getTarget();
|
||||
env_["PATH_INFO"] = uri.getPathInfo();
|
||||
env_["PATH_INFO"] = request.getTarget(); // TODO This is only correct for the tester;
|
||||
|
||||
// Only set CONTENT_TYPE and CONTENT_LENGTH if they have values
|
||||
auto contentType = request.getHeaders().getContentType();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user