File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def origin_lookup_ip(self, options):
43
43
pass
44
44
45
45
def _build_base_url (self , ip , options ):
46
- result = self ._config .base_url + "/" + ip + "?key=" + self . _config . api_key
46
+ result = self ._config .base_url + "/" + ip
47
47
48
48
for key , value in options .items ():
49
49
if isinstance (value , bool ):
@@ -135,9 +135,9 @@ def __create_api_error(response):
135
135
else :
136
136
raise ClientError ("HTTP Error occurred, but no response was received." )
137
137
138
- @staticmethod
139
- def __headers ():
138
+ def __headers (self ):
140
139
return {
140
+ "authorization" : "ApiKey " + self ._config .api_key ,
141
141
"content-type" : "application/json" ,
142
142
"user-agent" : "Ipregistry/Python" + str (sys .version_info [0 ]) + "/" + __version__
143
143
}
You can’t perform that action at this time.
0 commit comments