def _cgi_post(environ, content_type):
    """
    Test if there is POST form data to handle.
    """
    return (environ['REQUEST_METHOD'].upper() == 'POST'
            and (
                content_type.startswith('application/x-www-form-urlencoded')
                or content_type.startswith('multipart/form-data')))