Lots of fixes, begin to think about timeouts
This commit is contained in:
+6
-1
@@ -158,7 +158,12 @@ public:
|
||||
}
|
||||
|
||||
void route(const char *method, unsigned int method_length, const char *url, unsigned int url_length, USERDATA userData) {
|
||||
handlers[lookup(url, url_length)](userData, ¶ms);
|
||||
|
||||
int index = lookup(url, url_length);
|
||||
if (index != -1) {
|
||||
handlers[index](userData, ¶ms);
|
||||
}
|
||||
|
||||
params.clear();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user