Skip to content

Commit 61f27f5

Browse files
committed
fixes #196
1 parent cf5edfc commit 61f27f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

00_core.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
" if not path.startswith(('http://', 'https://')):\n",
220220
" path = self.gh_host + path\n",
221221
" if route:\n",
222-
" for k,v in route.items(): route[k] = quote(str(route[k]))\n",
222+
" for k,v in route.items(): route[k] = quote(str(route[k]), safe='')\n",
223223
" return_json = ('json' in headers['Accept']) and (decode is True)\n",
224224
" debug = self.debug if self.debug else print_summary if os.getenv('GHAPI_DEBUG') else None\n",
225225
" res,self.recv_hdrs = urlsend(path, verb, headers=headers or None, decode=decode, debug=debug, return_headers=True,\n",
@@ -1819,9 +1819,9 @@
18191819
],
18201820
"metadata": {
18211821
"kernelspec": {
1822-
"display_name": "python",
1822+
"display_name": "python3",
18231823
"language": "python",
1824-
"name": "python"
1824+
"name": "python3"
18251825
}
18261826
},
18271827
"nbformat": 4,

ghapi/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __call__(self, path:str, verb:str=None, headers:dict=None, route:dict=None,
127127
if not path.startswith(('http://', 'https://')):
128128
path = self.gh_host + path
129129
if route:
130-
for k,v in route.items(): route[k] = quote(str(route[k]))
130+
for k,v in route.items(): route[k] = quote(str(route[k]), safe='')
131131
return_json = ('json' in headers['Accept']) and (decode is True)
132132
debug = self.debug if self.debug else print_summary if os.getenv('GHAPI_DEBUG') else None
133133
res,self.recv_hdrs = urlsend(path, verb, headers=headers or None, decode=decode, debug=debug, return_headers=True,

0 commit comments

Comments
 (0)