1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 08:07:30 +00:00

Do not require user agent text

This commit is contained in:
Cadence Ember 2020-04-25 03:33:37 +12:00
parent d98618a934
commit 1f5d183a5e
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412

View File

@ -85,7 +85,7 @@ class DateCollection {
}
// ip, date, method, path, status, bytes, userAgent
const regex = /^([^ ]+) - - \[([^\]]+)\] "([A-Z]+) ([^"]+) HTTP\/(?:1.0|1.1|2.0)" ([0-9]+) ([0-9]+) "([^"]+)"$/
const regex = /^([^ ]+) - - \[([^\]]+)\] "([A-Z]+) ([^"]+) HTTP\/(?:1.0|1.1|2.0)" ([0-9]+) ([0-9]+) "([^"]*)"$/
function parseLine(line) {
const result = line.match(regex)