mirror of
https://github.com/sprockets/sprockets.mixins.http.git
synced 2024-11-14 19:29:31 +00:00
Resolve lint issues
This commit is contained in:
parent
ff54a51659
commit
219bc9b7e7
1 changed files with 4 additions and 3 deletions
|
@ -156,9 +156,10 @@ class HTTPResponse:
|
|||
return None
|
||||
links = []
|
||||
if 'Link' in self._responses[-1].headers:
|
||||
for l in headers.parse_link(self._responses[-1].headers['Link']):
|
||||
link = {'target': l.target}
|
||||
link.update({k: v for (k, v) in l.parameters})
|
||||
for parsed in headers.parse_link(
|
||||
self._responses[-1].headers['Link']):
|
||||
link = {'target': parsed.target}
|
||||
link.update({k: v for (k, v) in parsed.parameters})
|
||||
links.append(link)
|
||||
return links
|
||||
|
||||
|
|
Loading…
Reference in a new issue