Skip to content

Commit 0465575

Browse files
committed
Correctly handle default for Request params
1 parent f098f7c commit 0465575

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pusher/http.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ class Request(object):
6363
:param path: The target path on the destination host
6464
:param params: Query params or body depending on the method
6565
"""
66-
def __init__(self, config, method, path, params={}):
66+
def __init__(self, config, method, path, params=None):
67+
if params is None:
68+
params = {}
6769
self.config = config
6870
self.method = method
6971
self.path = path

0 commit comments

Comments
 (0)