We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d400fcd commit 34014d6Copy full SHA for 34014d6
ronkyuu/tools.py
@@ -88,9 +88,9 @@ def parse_link_header(link):
88
try:
89
rel_url = re.search('<(.+?)>', rel_break[0]).group(1)
90
rel_names = quoted_split(rel_break[1], '=')[-1]
91
+ if rel_names.startswith('"') and rel_names.endswith('"'):
92
+ rel_names = rel_names[1:-1]
93
for name in rel_names.split():
- if name.startswith('"') and name.endswith('"'):
- name = name[1:-1]
94
rel_dict[name] = rel_url
95
except (AttributeError, IndexError):
96
pass
0 commit comments