Merge branch 'master' of ssh://github.com/valenok/mongoose

This commit is contained in:
Sergey Lyubka committed 2012-10-05 02:10:47 +01:00
commit 03dd8367bf
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -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;