Skip to content

Commit d92ed30

Browse files
fivemrufivemru
authored andcommitted
removed the unnecessary double quote at the end of the string in the 'ua'
1 parent 52ce960 commit d92ed30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def parse_apache_line(line, sep=' '):
112112
'uri': (chunk[6] if len(chunk) >= 6 else "").strip(),
113113
'protocol': (chunk[7][:-1] if len(chunk) >= 7 else "").strip(),
114114
'request': (chunk[5][1:]+" "+chunk[6]+" "+chunk[7][:-1] if len(chunk) >= 7 else "").strip(),
115-
'ua': (' '.join(chunk[11:])[1:-1] if len(chunk) >= 11 else "").strip(),
115+
'ua': (' '.join(chunk[11:]).strip()[1:-1] if len(chunk) >= 11 else ""),
116116
'ref': (chunk[10][1:-1] if len(chunk) >= 11 else "").strip(),
117117
}
118118

0 commit comments

Comments
 (0)