| 1828 | } |
| 1829 | |
| 1830 | static int lua_ap_get_server_name_for_url(lua_State *L) |
| 1831 | { |
| 1832 | const char *servername; |
| 1833 | request_rec *r; |
| 1834 | luaL_checktype(L, 1, LUA_TUSERDATA); |
| 1835 | r = ap_lua_check_request_rec(L, 1); |
| 1836 | servername = ap_get_server_name_for_url(r); |
| 1837 | lua_pushstring(L, servername); |
| 1838 | return 1; |
| 1839 | } |
| 1840 | |
| 1841 | /* ap_state_query (int query_code) item starts a new field */ |
| 1842 | static int lua_ap_state_query(lua_State *L) |
nothing calls this directly
no test coverage detected