It has been discovered that each download() call (urllib handler) caused the code to generate two separete HTTP requests for the same URL. This commit hopefully fixes it without causing any regression