sunpy/sunpy — pull request #300 by segfaulthunter (2012-09-07 14:13:09+00:00)
Title: Improve file downloads

Supply centralized function in sunpy.net.util that obtains the file-name from the Content-Disposition header or the path in the URL (and falls back to a default filename). Also handles finding a replacement filename if the chosen one is already taken (can be disabled with overwrite=False).