Skip to content
Myr

Merge pull request #1355 from sigmavirus24/fix_links

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

Prevent a KeyError when there's no link headers

authored by Kenneth Reitz · committed by Kenneth Reitz · parents b599886, 88fda94 · 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