Skip to content

Commit

Permalink
Fixes matomo-org#4936 on IIS when no query string it shows as '-' so …
Browse files Browse the repository at this point in the history
…we assume '' instead.
  • Loading branch information
mattab committed Dec 1, 2014
1 parent d7397b2 commit f337722
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions misc/log-analytics/import_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,9 @@ 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)
Expand Down

0 comments on commit f337722

Please sign in to comment.