mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-20 00:33:06 +08:00
Removed mg_get_request_info()
This commit is contained in:
parent
cd7e1b9eb7
commit
ef28c37529
@ -242,7 +242,7 @@ static int lsp_redirect(lua_State *L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void prepare_lua_environment(struct mg_connection *conn, 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 *);
|
extern void luaL_openlibs(lua_State *);
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -159,10 +159,6 @@ const char *mg_version(void) {
|
|||||||
return MONGOOSE_VERSION;
|
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) {
|
static void mg_strlcpy(register char *dst, register const char *src, size_t n) {
|
||||||
for (; *src != '\0' && n > 1; n--) {
|
for (; *src != '\0' && n > 1; n--) {
|
||||||
*dst++ = *src++;
|
*dst++ = *src++;
|
||||||
|
@ -618,10 +618,6 @@ const char *mg_version(void) {
|
|||||||
return MONGOOSE_VERSION;
|
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) {
|
static void mg_strlcpy(register char *dst, register const char *src, size_t n) {
|
||||||
for (; *src != '\0' && n > 1; n--) {
|
for (; *src != '\0' && n > 1; n--) {
|
||||||
*dst++ = *src++;
|
*dst++ = *src++;
|
||||||
|
Loading…
Reference in New Issue
Block a user