Skip to content

Commit

Permalink
Merge pull request #57 from marblestation/bugfix_dict
Browse files Browse the repository at this point in the history
Bugfix: ImmutableMultiDict to dict losing fl values in list
  • Loading branch information
marblestation committed Jun 1, 2021
2 parents 0dbfe56 + 6ebb6c2 commit f5d85d6
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit f5d85d6

Please sign in to comment.