mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-01 13:10:43 +00:00
Moved HTTP client, ssl and some util code into separate files
This commit is contained in:
1 parent
47606a71ee
commit
cafaecfc56
8 files changed
+702
-693
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#include "internal.h"
|
||||
|
||||
// Return fake connection structure. Used for logging, if connection
|
||||
// is not applicable at the moment of logging.
|
||||
static struct mg_connection *fc(struct mg_context *ctx) {
|
||||
static struct mg_connection fake_connection;
|
||||
fake_connection.ctx = ctx;
|
||||
// See https://github.com/cesanta/mongoose/issues/236
|
||||
fake_connection.event.user_data = ctx->user_data;
|
||||
return &fake_connection;
|
||||
}
|
||||
Reference in new issue
Block a user