From: Sarah Hoffmann Date: Fri, 23 Jan 2015 09:19:06 +0000 (+0100) Subject: catch http requests with full url X-Git-Tag: deploy~488 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/0fac696f86fc88be31c583f951abce62230c0945 catch http requests with full url --- diff --git a/utils/cron_ipanalyse.py b/utils/cron_ipanalyse.py index 18582667..aba5e510 100755 --- a/utils/cron_ipanalyse.py +++ b/utils/cron_ipanalyse.py @@ -84,11 +84,11 @@ class LogEntry: if qp[0] == 'OPTIONS': self.request = None else: - if qp[1].startswith('/search'): + if '/search' in qp[1]: self.request = 'S' - elif qp[1].startswith('/reverse'): + elif '/reverse' in qp[1]: self.request = 'R' - elif qp[1].startswith('/details'): + elif '/details' in qp[1]: self.request = 'D' else: self.request = None