Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: ImmutableMultiDict to dict losing fl values in list #57

Merged
merged 1 commit into from
Jun 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions solr/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_handler_class(self):
return "default"

def get(self):
query, headers = self.cleanup_solr_request(dict(request.args))
query, headers = self.cleanup_solr_request(request.args.to_dict(flat=False))

# trickery, we can accept docs() operator if it is part of form data
# I tried to search whether it is a valid move to send multipart
Expand Down Expand Up @@ -540,8 +540,8 @@ def get_handler_class(self):

def post(self):
handler_class = self.get_handler_class()
payload = dict(request.form)
payload.update(request.args)
payload = request.form.to_dict(flat=False)
payload.update(request.args.to_dict(flat=False))
if request.is_json:
payload.update(request.json)

Expand Down