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
|
return None
|
||||||
links = []
|
links = []
|
||||||
if 'Link' in self._responses[-1].headers:
|
if 'Link' in self._responses[-1].headers:
|
||||||
for l in headers.parse_link(self._responses[-1].headers['Link']):
|
for parsed in headers.parse_link(
|
||||||
link = {'target': l.target}
|
self._responses[-1].headers['Link']):
|
||||||
link.update({k: v for (k, v) in l.parameters})
|
link = {'target': parsed.target}
|
||||||
|
link.update({k: v for (k, v) in parsed.parameters})
|
||||||
links.append(link)
|
links.append(link)
|
||||||
return links
|
return links
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue