add: tests
This commit is contained in:
		
							parent
							
								
									760cec9a20
								
							
						
					
					
						commit
						865caa627e
					
				
					 15 changed files with 558 additions and 386 deletions
				
			
		| 
						 | 
				
			
			@ -19,7 +19,7 @@ handler_connection(struct mg_connection *nc, int ev, void *p)
 | 
			
		|||
    if (ev == MG_EV_HTTP_REQUEST)
 | 
			
		||||
    {
 | 
			
		||||
        struct http_message *hm = (struct http_message *) p;
 | 
			
		||||
        LOG_DEBUG("new http %.*s request for %.*s\n", hm->method.len, hm->method.p, hm->uri.len, hm->uri.p);
 | 
			
		||||
        LOG_TRACE("new http %.*s request for %.*s\n", hm->method.len, hm->method.p, hm->uri.len, hm->uri.p);
 | 
			
		||||
 | 
			
		||||
        endpoint_t *endpoint = router_find_endpoint(hm->uri.p, hm->uri.len, &hm->method);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue