|  | @@ -42,6 +42,13 @@ bool CivetHandler::handleDelete(CivetServer *server, struct mg_connection *conn)
 | 
	
		
			
				|  |  |      return false;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +bool CivetHandler::handleOptions(CivetServer *server, struct mg_connection *conn)
 | 
	
		
			
				|  |  | +{
 | 
	
		
			
				|  |  | +    UNUSED_PARAMETER(server);
 | 
	
		
			
				|  |  | +    UNUSED_PARAMETER(conn);
 | 
	
		
			
				|  |  | +    return false;
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  int CivetServer::requestHandler(struct mg_connection *conn, void *cbdata)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |      struct mg_request_info *request_info = mg_get_request_info(conn);
 | 
	
	
		
			
				|  | @@ -63,6 +70,8 @@ int CivetServer::requestHandler(struct mg_connection *conn, void *cbdata)
 | 
	
		
			
				|  |  |              return handler->handlePut(me, conn) ? 1 : 0;
 | 
	
		
			
				|  |  |          } else if (strcmp(request_info->request_method, "DELETE") == 0) {
 | 
	
		
			
				|  |  |              return handler->handleDelete(me, conn) ? 1 : 0;
 | 
	
		
			
				|  |  | +        } else if (strcmp(request_info->request_method, "OPTIONS") == 0) {
 | 
	
		
			
				|  |  | +            return handler->handleOptions(me, conn) ? 1 : 0;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |