/* parse message header */
if( (req = uh_http_header_recv(cl)) != NULL )
{
+#ifdef HAVE_LUA
+ /* Lua request? */
+ if( strstr(req->url, conf.lua_prefix) == req->url )
+ {
+ uh_lua_request(cl, req, L);
+ }
+ else
+#endif
/* dispatch request */
if( (pin = uh_path_lookup(cl, req->url)) != NULL )
{
uh_file_request(cl, req, pin);
}
}
-#ifdef HAVE_LUA
- /* Lua request? */
- else if( strstr(req->url, conf.lua_prefix) == req->url )
- {
- uh_lua_request(cl, req, L);
- }
-#endif
+
/* 404 */
else
{