def transform_key(key):
        """Title-case an HTTP header name."""
        if key is None:
            # TODO(#1830): why?
            return 'None'
        return key.title()
Title-case an HTTP header name.
cherrypy/lib/httputil.py