def HasRequestHeader(self, key, value):
    if (key not in self.response.request_headers):
        return False
    request_header = self.response.request_headers[key]
    values = [v.strip() for v in request_header.split(',')]
    return any(((v == value) for v in values))
def HasRequestHeader(self, key, value):
    if (key not in self.response.request_headers):
        return False
    request_header = self.response.request_headers[key]
    values = [v.strip() for v in request_header.split(',')]
    return any(((v == value) for v in values))