Skip to content
Myr

Prevent a KeyError when there's no link headers

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ian Cordasco · committed by Ian Cordasco · parent b599886 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
644 unmodified lines
645 @property646 def links(self):647 """Returns the parsed header links of the response, if any."""648649 header = self.headers['link']649 header = self.headers.get('link')650651 # l = MultiDict()652 l = {}653
25 unmodified lines