We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0dbfe56 + 6ebb6c2 commit f5d85d6Copy full SHA for f5d85d6
solr/views.py
@@ -47,7 +47,7 @@ def get_handler_class(self):
47
return "default"
48
49
def get(self):
50
- query, headers = self.cleanup_solr_request(dict(request.args))
+ query, headers = self.cleanup_solr_request(request.args.to_dict(flat=False))
51
52
# trickery, we can accept docs() operator if it is part of form data
53
# I tried to search whether it is a valid move to send multipart
@@ -540,8 +540,8 @@ def get_handler_class(self):
540
541
def post(self):
542
handler_class = self.get_handler_class()
543
- payload = dict(request.form)
544
- payload.update(request.args)
+ payload = request.form.to_dict(flat=False)
+ payload.update(request.args.to_dict(flat=False))
545
if request.is_json:
546
payload.update(request.json)
547
0 commit comments