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

        return super(HeaderDict, self).setdefault(k.title(), d)
Override dict.setdefault() to title-case keys.