[services/net/webserver] don't put a closure into a dictionary