Skip to content

Commit

Permalink
fix api_hlp string error
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBaggett committed Jun 20, 2018
1 parent ff29fe3 commit fb52275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domain_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def do_GET(self):
cmdstr = re.search(r"[\/](created|alexa|domain)[\/].*$", urlpath)
tgtstr = re.search(r"[\/](created|alexa|domain)[\/](.*)$", urlpath)
if not cmdstr or not tgtstr:
api_hlp = 'API Documentation\nhttp://%s:%s/cmd/tgt cmd = domain, alexa or created tgt = domain name' % (self.server.server_address[0], self.server.server_address[1],self.server.server_address[0], self.server.server_address[1],self.server.server_address[0], self.server.server_address[1])
api_hlp = 'API Documentation\nhttp://%s:%s/cmd/tgt cmd = domain or alexa tgt = domain name' % (self.server.server_address[0], self.server.server_address[1])
self.wfile.write(api_hlp.encode("latin-1"))
return
params = {}
Expand All @@ -56,7 +56,7 @@ def do_GET(self):
cmdstr=re.search("cmd=(?:domain|alexa|created)",urlparams)
tgtstr = re.search("tgt=",urlparams)
if not cmdstr or not tgtstr:
api_hlp = 'API Documentation\nhttp://%s:%s/cmd/tgt cmd = domain, alexa or created tgt = domain name' % (self.server.server_address[0], self.server.server_address[1],self.server.server_address[0], self.server.server_address[1],self.server.server_address[0], self.server.server_address[1])
api_hlp = 'API Documentation\nhttp://%s:%s/cmd/tgt cmd = domain or alexa tgt = domain name' % (self.server.server_address[0], self.server.server_address[1])
self.wfile.write(api_hlp.encode("latin-1"))
return
params={}
Expand Down

0 comments on commit fb52275

Please sign in to comment.