kennethreitz/requests — pull request #803 by vasa81 (2012-08-21 14:40:05+00:00)
Title: Custom mimetypes for files in multipart request

I added support for custom mimetypes in mutipart request.

Usage:
r = requests.post(url, files={'file': ('file.xml', file_content)})
or
r = requests.post(url, files={'file': ('file.xml', file_content, 'text/xml')})
or
r = requests.post(url, files={'file': ('file.xml', file_content, 'application/xml')})