Commit ef28c375 authored by Sergey Lyubka's avatar Sergey Lyubka

Removed mg_get_request_info()

parent cd7e1b9e
......@@ -242,7 +242,7 @@ static int lsp_redirect(lua_State *L) {
}
static void prepare_lua_environment(struct mg_connection *conn, lua_State *L) {
const struct mg_request_info *ri = mg_get_request_info(conn);
const struct mg_request_info *ri = &conn->request_info;
extern void luaL_openlibs(lua_State *);
int i;
......
......@@ -159,10 +159,6 @@ const char *mg_version(void) {
return MONGOOSE_VERSION;
}
struct mg_request_info *mg_get_request_info(struct mg_connection *conn) {
return &conn->request_info;
}
static void mg_strlcpy(register char *dst, register const char *src, size_t n) {
for (; *src != '\0' && n > 1; n--) {
*dst++ = *src++;
......
......@@ -618,10 +618,6 @@ const char *mg_version(void) {
return MONGOOSE_VERSION;
}
struct mg_request_info *mg_get_request_info(struct mg_connection *conn) {
return &conn->request_info;
}
static void mg_strlcpy(register char *dst, register const char *src, size_t n) {
for (; *src != '\0' && n > 1; n--) {
*dst++ = *src++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment