From 932065fc9f55d6bdfb2275cb10009537d967fc01 Mon Sep 17 00:00:00 2001 From: Karl Dubost Date: Wed, 4 Feb 2015 16:57:19 +0900 Subject: [PATCH] #451 rewrite_links with parsing and formatting --- webcompat/helpers.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/webcompat/helpers.py b/webcompat/helpers.py index 1b6e6b250..880ec2706 100644 --- a/webcompat/helpers.py +++ b/webcompat/helpers.py @@ -194,15 +194,15 @@ def rewrite_links(link_header): ; rel="next", ; rel="last" etc. ''' - links = link_header.split(',') - new_links = [] - for link in links: - api_path, endpoint_path = link.rsplit('/', 1) - if api_path.strip().startswith('