def do_HEAD(s):
        """
        Respond to an image HEAD request fake metadata
        """
        if 'images' in s.path:
            s.send_response(200)
            s.send_header('Content-Type', 'application/octet-stream')
            s.send_header('Content-Length', FIVE_KB)
            s.end_headers()
            return
        else:
            self.send_error(404, 'File Not Found: %s' % self.path)
            return
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/tests/functional/test_cache_middleware.py/RemoteImageHandler.do_HEAD/original