

def process_request(self, request, spider):
    auth = getattr(self, 'auth', None)
    if (auth and ('Authorization' not in request.headers)):
        request.headers['Authorization'] = auth

dataset/ETHPy150Open wcong/ants/ants/contrib/downloadermiddleware/httpauth.py HttpAuthMiddleware.process_request/original