mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
Merge branch 'master' of ssh://github.com/valenok/mongoose
This commit is contained in:
commit
03dd8367bf
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -529,7 +529,7 @@ static int is_file_in_memory(struct mg_connection *conn, const char *path,
|
||||
struct file *filep) {
|
||||
conn->request_info.ev_data = (void *) path;
|
||||
if ((filep->membuf = call_user(conn, MG_OPEN_FILE)) != NULL) {
|
||||
filep->size = (int) conn->request_info.ev_data;
|
||||
filep->size = (long) conn->request_info.ev_data;
|
||||
}
|
||||
return filep->membuf != NULL;
|
||||
}
|
||||
@@ -925,7 +925,7 @@ static void send_http_error(struct mg_connection *conn, int status,
|
||||
int len;
|
||||
|
||||
conn->status_code = status;
|
||||
conn->request_info.ev_data = (void *) status;
|
||||
conn->request_info.ev_data = (void *) (long) status;
|
||||
if (call_user(conn, MG_HTTP_ERROR) == NULL) {
|
||||
buf[0] = '\0';
|
||||
len = 0;
|
||||
|
||||
Reference in new issue
Block a user