Skip to content

Commit

Permalink
refs matomo-org#4936 on IIS when no query string it shows as '-' so w…
Browse files Browse the repository at this point in the history
…e assume '' instead.
  • Loading branch information
mattab committed Dec 1, 2014
1 parent f337722 commit 133a448
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions misc/log-analytics/import_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1606,13 +1606,14 @@ def invalid_line(line, reason):

try:
hit.query_string = format.get('query_string')
# IIS detaults to - when there is no query string, but we want empty string
if hit.query_string == '-':
hit.query_string = ''
hit.path = hit.full_path
except BaseFormatException:
hit.path, _, hit.query_string = hit.full_path.partition(config.options.query_string_delimiter)

# IIS detaults to - when there is no query string, but we want empty string
if hit.query_string == '-':
hit.query_string = ''

hit.extension = hit.path.rsplit('.')[-1].lower()

try:
Expand Down

0 comments on commit 133a448

Please sign in to comment.