Commit 8b491d75 authored by Sergey Lyubka's avatar Sergey Lyubka

added const in mg_get_request_info()

parent d70c18d6
......@@ -592,7 +592,8 @@ const char *mg_version(void) {
return MONGOOSE_VERSION;
}
const struct mg_request_info *mg_get_request_info(struct mg_connection *conn) {
const struct mg_request_info *
mg_get_request_info(const struct mg_connection *conn) {
return &conn->request_info;
}
......
......@@ -153,7 +153,7 @@ int mg_modify_passwords_file(const char *passwords_file_name,
// Return mg_request_info structure associated with the request.
// Always succeeds.
const struct mg_request_info *mg_get_request_info(struct mg_connection *);
const struct mg_request_info *mg_get_request_info(const struct mg_connection *);
// Send data to the client.
......
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