mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-05 22:08:23 +00:00
Dash nits
This commit is contained in:
1 parent
353bde811d
commit
9650e61fbe
3 files changed
+1
-3
No files matched your search
@@ -596,7 +596,6 @@ void mg_dash_ev_handler(struct mg_connection *c, int ev, void *ev_data) {
|
|||||||
struct mg_http_message *hm = (struct mg_http_message *) ev_data;
|
struct mg_http_message *hm = (struct mg_http_message *) ev_data;
|
||||||
struct mg_dash_user *u = mg_dash_authenticate(hm, dash);
|
struct mg_dash_user *u = mg_dash_authenticate(hm, dash);
|
||||||
|
|
||||||
MG_DEBUG(("%lu HDRS %.*s", c->id, hm->uri.len, hm->uri.buf));
|
|
||||||
if (mg_match(hm->uri, mg_str("/api/hi"), NULL) ||
|
if (mg_match(hm->uri, mg_str("/api/hi"), NULL) ||
|
||||||
mg_match(hm->uri, mg_str("/api/logout"), NULL)) {
|
mg_match(hm->uri, mg_str("/api/logout"), NULL)) {
|
||||||
// Do nothing, handle them MG_EV_HTTP_MSG. We bypass auth for those
|
// Do nothing, handle them MG_EV_HTTP_MSG. We bypass auth for those
|
||||||
|
|||||||
@@ -475,7 +475,6 @@ void mg_dash_ev_handler(struct mg_connection *c, int ev, void *ev_data) {
|
|||||||
struct mg_http_message *hm = (struct mg_http_message *) ev_data;
|
struct mg_http_message *hm = (struct mg_http_message *) ev_data;
|
||||||
struct mg_dash_user *u = mg_dash_authenticate(hm, dash);
|
struct mg_dash_user *u = mg_dash_authenticate(hm, dash);
|
||||||
|
|
||||||
MG_DEBUG(("%lu HDRS %.*s", c->id, hm->uri.len, hm->uri.buf));
|
|
||||||
if (mg_match(hm->uri, mg_str("/api/hi"), NULL) ||
|
if (mg_match(hm->uri, mg_str("/api/hi"), NULL) ||
|
||||||
mg_match(hm->uri, mg_str("/api/logout"), NULL)) {
|
mg_match(hm->uri, mg_str("/api/logout"), NULL)) {
|
||||||
// Do nothing, handle them MG_EV_HTTP_MSG. We bypass auth for those
|
// Do nothing, handle them MG_EV_HTTP_MSG. We bypass auth for those
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ void mg_dash_poll(struct mg_mgr *mgr) {
|
|||||||
mg_dash_send_change(mgr, &set_metrics);
|
mg_dash_send_change(mgr, &set_metrics);
|
||||||
}
|
}
|
||||||
if (mg_timer_expired(&timer2, 120, mg_now()) && s_graph2_report) {
|
if (mg_timer_expired(&timer2, 120, mg_now()) && s_graph2_report) {
|
||||||
//mg_dash_send_change(mgr, &set_graph2);
|
mg_dash_send_change(mgr, &set_graph2);
|
||||||
}
|
}
|
||||||
if (s_action2 == true && s_action2_timeout < mg_now()) {
|
if (s_action2 == true && s_action2_timeout < mg_now()) {
|
||||||
s_action2 = false;
|
s_action2 = false;
|
||||||
|
|||||||
Reference in new issue
Block a user