if( conf->lua_state &&
uh_path_match(conf->lua_prefix, req->url) )
{
- /* auth ok? */
- if( uh_auth_check(cl, req, pin) )
- conf->lua_request(cl, req, conf->lua_state);
+ conf->lua_request(cl, req, conf->lua_state);
}
else
#endif
if( (pin = uh_path_lookup(cl, req->url)) != NULL )
{
/* auth ok? */
- if( uh_auth_check(cl, req, pin) )
+ if( !pin->redirected && uh_auth_check(cl, req, pin) )
uh_dispatch_request(cl, req, pin);
}
return 0;
}
-