From 7042d2cc9e7df7ab8189e1d987e18ee483772a60 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Thu, 14 Jun 2018 17:08:09 -0700 Subject: [PATCH] Use path_qs instead of reinventing it Change-Id: I686db8fc456fb43dc9f51d83feb3fadeb397ed76 --- swift/common/middleware/proxy_logging.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/swift/common/middleware/proxy_logging.py b/swift/common/middleware/proxy_logging.py index 069dc106f9..f3c236a6c9 100644 --- a/swift/common/middleware/proxy_logging.py +++ b/swift/common/middleware/proxy_logging.py @@ -152,9 +152,6 @@ class ProxyLoggingMiddleware(object): :param resp_headers: dict of the response headers """ resp_headers = resp_headers or {} - the_request = req.path - if req.query_string: - the_request = the_request + '?' + req.query_string logged_headers = None if self.log_hdrs: if self.log_hdrs_only: @@ -179,7 +176,7 @@ class ProxyLoggingMiddleware(object): req.remote_addr, end_gmtime_str, method, - the_request, + req.path_qs, req.environ.get('SERVER_PROTOCOL'), status_int, req.referer,