Explorar o código

Add local_uri_raw to lua's mg.request_info

Signed-off-by: DL6ER <dl6er@dl6er.de>
DL6ER %!s(int64=4) %!d(string=hai) anos
pai
achega
0c34c71d69
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/mod_lua.inl

+ 1 - 0
src/mod_lua.inl

@@ -2469,6 +2469,7 @@ prepare_lua_request_info(struct mg_connection *conn, lua_State *L)
 	reg_string(L, "request_method", conn->request_info.request_method);
 	reg_string(L, "request_uri", conn->request_info.request_uri);
 	reg_string(L, "uri", conn->request_info.local_uri);
+	reg_string(L, "uri_raw", conn->request_info.local_uri_raw);
 	reg_string(L, "http_version", conn->request_info.http_version);
 	reg_string(L, "query_string", conn->request_info.query_string);
 	reg_string(L, "remote_addr", conn->request_info.remote_addr);