tzulberti / Flask-PyPi-Proxy

A pypi proxy done using flask
42 stars 22 forks source link

Fixed a problem with some external URLs #7

Closed rjarry closed 11 years ago

rjarry commented 11 years ago

There are some download links that do not end with a file extension. Therefore, the proxy tries to open them to look for additionnal URLs but PyQuery fails to parse the HTML code because it is a gzipped tarball or something of the kind.

Example: docutils http://pypi.python.org/simple/docutils/

http://sourceforge.net/projects/docutils/files/docutils/0.8.1/docutils-0.8.1.tar.gz/download
http://sourceforge.net/projects/docutils/files/docutils/0.9.1/docutils-0.9.1.tar.gz/download