Make sure we pass *args to the requests session object
@@ -6,18 +6,19 @@ import requests.sessions
from promgen.version import __version__
-def post(url, **kwargs):
+def post(url, *args, **kwargs):
with requests.sessions.Session() as session:
session.headers['User-Agent'] = 'promgen/{}'.format(__version__)
- return session.post(url, **kwargs)
+ return session.post(url, *args, **kwargs)
-def get(url, **kwargs):
+def get(url, *args, **kwargs):
with requests.sessions.Session() as session:
session.headers['User-Agent'] = 'promgen/{}'.format(__version__)
- return session.get(url, **kwargs)
+ return session.get(url, *args, **kwargs)
-def delete(url, **kwargs):
+
+def delete(url, *args, **kwargs):
with requests.sessions.Session() as session:
session.headers['User-Agent'] = 'promgen/{}'.format(__version__)
- return session.delete(url, **kwargs)
+ return session.delete(url, *args, **kwargs)
