Skip to content

Commit 16dbc08

Browse files
committed
URL escaping the path portion of the request to allow for better label naming
1 parent 675ba1c commit 16dbc08

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github2/request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from urlparse import parse_qs
1212
except ImportError:
1313
from cgi import parse_qs
14-
from urllib import urlencode
14+
from urllib import urlencode, quote
1515

1616
GITHUB_URL = "https://github.com"
1717

@@ -87,7 +87,7 @@ def make_request(self, path, extra_post_data=None, method="GET"):
8787
time.sleep(duration)
8888

8989
extra_post_data = extra_post_data or {}
90-
url = "/".join([self.url_prefix, path])
90+
url = "/".join([self.url_prefix, quote(path)])
9191
result = self.raw_request(url, extra_post_data, method=method)
9292

9393
if self.delay:

0 commit comments

Comments
 (0)