pingou / centos-git-common

Forked from centos-git-common 2 years ago
Clone

510f1a Use http code to check object in lookaside cache

Authored and Committed by amoralej 3 years ago
    Use http code to check object in lookaside cache
    
    Currently, it only checks the size of the http object returned but it
    may happen that the size of the 404 error page match the size of the
    tarball. You may think this is a corner case we'll never hit... well, we
    hit it, :)
    
    This patch it's adding a check based on the http code, so to give it as
    already uploaded we need it to return 200 code and match the actual
    size.
    
        
file modified
+2 -1