diff --git a/pylti1p3/service_connector.py b/pylti1p3/service_connector.py index d50149f..d0dd8a8 100644 --- a/pylti1p3/service_connector.py +++ b/pylti1p3/service_connector.py @@ -132,7 +132,8 @@ def make_service_request( if link_header: match = re.search( r'<([^>]*)>;\s*rel="next"', - link_header.replace("\n", " ").lower().strip(), + link_header.replace("\n", " ").strip(), + re.IGNORECASE ) if match: next_page_url = match.group(1)