summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/daq/accesslog/sfive-accesslog.py6
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: