def sanitize_for_archive(url, headers, payload):
        """Sanitize payload of a HTTP request by removing the token information
        before storing/retrieving archived items

        :param: url: HTTP url request
        :param: headers: HTTP headers request
        :param: payload: HTTP payload request

        :returns url, headers and the sanitized payload
        """
        if headers and 'PRIVATE-TOKEN' in headers:
            headers.pop('PRIVATE-TOKEN', None)

        return url, headers, payload
def sanitize_for_archive(url, headers, payload):
        """Sanitize payload of a HTTP request by removing the token information
        before storing/retrieving archived items

        :param: url: HTTP url request
        :param: headers: HTTP headers request
        :param: payload: HTTP payload request

        :returns url, headers and the sanitized payload
        """
        if headers and 'PRIVATE-TOKEN' in headers:
            headers.pop('PRIVATE-TOKEN', None)

        return url, headers, payload
def sanitize_for_archive ( url , headers , payload ) : if headers and 'PRIVATE-TOKEN' in headers : headers . pop ( 'PRIVATE-TOKEN' , None ) return url , headers , payload
Sanitize payload of a HTTP request by removing the token information
        before storing/retrieving archived items

        :param: url: HTTP url request
        :param: headers: HTTP headers request
        :param: payload: HTTP payload request

        :returns url, headers and the sanitized payload
Sanitize payload of a HTTP request by removing the token information before storing / retrieving archived items