diff options
-rw-r--r-- | wsgitools/filters.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsgitools/filters.py b/wsgitools/filters.py index 9b901fd..943f56b 100644 --- a/wsgitools/filters.py +++ b/wsgitools/filters.py @@ -221,6 +221,8 @@ class RequestLogWSGIFilter(BaseWSGIFilter): self.user = environ.get("REMOTE_USER", "-") self.reqmethod = environ["REQUEST_METHOD"] self.path = environ["SCRIPT_NAME"] + environ["PATH_INFO"] + if environ.get("QUERY_STRING"): + self.path = "%s?%s" % (self.path, environ["QUERY_STRING"]) self.proto = environ.get("SERVER_PROTOCOL", None) self.referrer = environ.get("HTTP_REFERER", "-") self.useragent = environ.get("HTTP_USER_AGENT", "-") |