toland/patron — pull request #70 by bhaberer (2013-05-07 18:02:13+00:00)
Title: Adding Support for setting default headers on a Session

Fairly small change that allows for setting the headers on a Session.

My use case:

All my Patron calls hit a specific REST API and need to have a specific set of headers (application/json and some others), and passing them in every call is a lot of duplication when I could just set them in the session itself.