pipeline.py: fix double downloading http and https