Skip to content
Snippets Groups Projects
Commit 14938db3 authored by Caner Candan's avatar Caner Candan
Browse files

* fixed a missing feature issue with the previous added feature

parent 947456f3
No related branches found
No related tags found
No related merge requests found
...@@ -100,9 +100,10 @@ class API: ...@@ -100,9 +100,10 @@ class API:
- `module`: module name - `module`: module name
""" """
self.url = 'http://%s:%d/%s' % (server if server else settings['server'], self.module = module
port if port else settings['port'], self.server = server
module) self.port = port
self.headers = {} self.headers = {}
if settings['auth']: if settings['auth']:
...@@ -116,7 +117,10 @@ class API: ...@@ -116,7 +117,10 @@ class API:
- `path`: the request path - `path`: the request path
""" """
return self.url + path url = 'http://%s:%d/%s' % (self.server if self.server else settings['server'],
self.port if self.port else settings['port'],
self.module)
return url + path
def get(self, **kwargs): def get(self, **kwargs):
"""wrapper of overloaded __get__ method.""" """wrapper of overloaded __get__ method."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment