mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
remove http_match_uri()
This commit is contained in:
1 parent
e6bf658271
commit
ef61d6ea48
34 files changed
+83
-93
No files matched your search
@@ -52,7 +52,7 @@ static void fn(struct mg_connection *c, int ev, void *ev_data) {
|
||||
start_thread(thread_function, data); // Start thread and pass data
|
||||
} else if (ev == MG_EV_HTTP_MSG) {
|
||||
struct mg_http_message *hm = (struct mg_http_message *) ev_data;
|
||||
if (mg_http_match_uri(hm, "/websocket")) {
|
||||
if (mg_match(hm->uri, mg_str("/websocket"), NULL)) {
|
||||
mg_ws_upgrade(c, hm, NULL); // Upgrade HTTP to Websocket
|
||||
c->data[0] = 'W'; // Set some unique mark on a connection
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user