Both the setuptools and meta instances save .diff and .patch files as
text/x-diff, which most browsers try to download.
Attached is a simplified version of the patches.py detector from python-dev that
should be enough to save these files, along with .py ones, as text/plain.