From 85e71361fbf0c9c6fa331a38192c8d59624db54f Mon Sep 17 00:00:00 2001 From: Emir Hodzic Date: Tue, 21 Jul 2020 17:18:58 +0200 Subject: [PATCH] more flexible header splitting (#1616) Co-authored-by: Liuyang Wan --- github/PaginatedList.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/PaginatedList.py b/github/PaginatedList.py index c1555708..3fe9e3c0 100644 --- a/github/PaginatedList.py +++ b/github/PaginatedList.py @@ -230,7 +230,7 @@ class PaginatedList(PaginatedListBase): if "link" in headers: linkHeaders = headers["link"].split(", ") for linkHeader in linkHeaders: - (url, rel) = linkHeader.split("; ") + url, rel, *rest = linkHeader.split("; ") url = url[1:-1] rel = rel[5:-1] links[rel] = url