Skip to content

Commit 7e573e3

Browse files
committed
set '' as default for query string
1 parent d5c9b43 commit 7e573e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_project_base/profiling/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class ProfileRequest(object):
5353
def __init__(self, settings: dict, process_function: callable,
5454
process_function_args: tuple, process_function_kwargs: dict):
5555
assert 'REQUEST_METHOD' in settings
56-
assert 'QUERY_STRING' in settings
5756
assert 'PATH_INFO' in settings
57+
settings.setdefault('QUERY_STRING', '')
5858
settings.setdefault('HTTP_HOST', socket.gethostname())
5959
self._settings = settings
6060
self._process_function = process_function

0 commit comments

Comments
 (0)