Override dict.setdefault() to title-case keys.

def setdefault(self, k, d=None):
        """Override dict.setdefault() to title-case keys."""

        return super(HeaderDict, self).setdefault(k.title(), d)