More work on aqhome-cgi.

This commit is contained in:
Martin Preuss
2025-09-15 18:04:44 +02:00
parent 90f6ce73e4
commit 61f69f45b0
12 changed files with 1166 additions and 242 deletions

View File

@@ -98,6 +98,7 @@ void _handleRequest(AQCGI_REQUEST *rq, const char *sPathStaticFiles, const char
rv=_handlePath(sv, rq, sPathStaticFiles);
if (rv<0) {
DBG_INFO(NULL, "here (%d)", rv);
}
AQH_Service_free(sv);
}
@@ -114,6 +115,7 @@ int _handlePath(AQH_SERVICE *sv, AQCGI_REQUEST *rq, const char *sPathStaticFiles
mRoot=AQH_ModRoot_new(sv, sPathStaticFiles);
mParent=mRoot;
session=AQH_ModService_ReadSession(mRoot, rq);
AQH_ModService_CalcSessionModPerms(mRoot, session);
sl=AQCGI_Request_GetStringlistPath(rq);
if (sl) {
@@ -135,7 +137,6 @@ int _handlePath(AQH_SERVICE *sv, AQCGI_REQUEST *rq, const char *sPathStaticFiles
if (m==NULL) {
AQH_Session_free(session);
AQH_Module_free(mRoot);
AQCGI_SendResponseWithStatus(rq, 404, "Not found");
return GWEN_ERROR_GENERIC;
}
mParent=m;