diff options
Diffstat (limited to 'src/modules/m_httpd.cpp')
-rw-r--r-- | src/modules/m_httpd.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index eff9a7ad2..ee4544371 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -339,12 +339,17 @@ class HttpServerSocket : public BufferedSocket { claimed = false; HTTPRequest httpr(request_type,uri,&headers,this,this->GetIP(),postdata); - Event e((char*)&httpr, (Module*)HttpModule, "httpd_url"); - e.Send(this->Instance); + Event acl((char*)&httpr, (Module*)HttpModule, "httpd_acl"); + acl.Send(this->Instance); if (!claimed) { - SendHTTPError(404); - Instance->SE->WantWrite(this); + Event e((char*)&httpr, (Module*)HttpModule, "httpd_url"); + e.Send(this->Instance); + if (!claimed) + { + SendHTTPError(404); + Instance->SE->WantWrite(this); + } } } } |