diff options
author | Christian Pointner <equinox@spreadspace.org> | 2014-10-14 02:03:45 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2014-10-14 02:03:45 +0200 |
commit | a2bbc867ef80f3c24d28fa4eb44d6fb9b49010f5 (patch) | |
tree | 96cbbfa77d1092b99c29d95cb6ff458b0c8357cd /src/daq/accesslog/sfive-accesslog.py | |
parent | sendData now uses new ClientList directly (diff) |
cmd vs method
Diffstat (limited to 'src/daq/accesslog/sfive-accesslog.py')
-rwxr-xr-x | src/daq/accesslog/sfive-accesslog.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daq/accesslog/sfive-accesslog.py b/src/daq/accesslog/sfive-accesslog.py index 89e2c1b..4d4315f 100755 --- a/src/daq/accesslog/sfive-accesslog.py +++ b/src/daq/accesslog/sfive-accesslog.py @@ -112,7 +112,7 @@ class ClientList: def update(self, linedata): if linedata['status'] != 200 and linedata['status'] != 206: return - if linedata['req']['cmd'] != 'GET': + if linedata['req']['method'] != 'GET': return try: @@ -209,10 +209,10 @@ class AccessLog(): return re.compile(r'\s+'.join(parts)+r'\s*\Z') def _parseRequest(self, reqstr): - req = { 'cmd': None, 'url': None, 'proto': None } + req = { 'method': None, 'url': None, 'proto': None } try: parts = reqstr.split() - req['cmd'] = parts[0] if parts[0] != '-' else None + req['method'] = parts[0] if parts[0] != '-' else None req['url'] = parts[1] req['proto'] = parts[2] except IndexError: |