Skip to content

Commit 34014d6

Browse files
committed
silly mistake, remove quotes outside of the loop
1 parent d400fcd commit 34014d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ronkyuu/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def parse_link_header(link):
8888
try:
8989
rel_url = re.search('<(.+?)>', rel_break[0]).group(1)
9090
rel_names = quoted_split(rel_break[1], '=')[-1]
91+
if rel_names.startswith('"') and rel_names.endswith('"'):
92+
rel_names = rel_names[1:-1]
9193
for name in rel_names.split():
92-
if name.startswith('"') and name.endswith('"'):
93-
name = name[1:-1]
9494
rel_dict[name] = rel_url
9595
except (AttributeError, IndexError):
9696
pass

0 commit comments

Comments
 (0)