Skip to content

Commit

Permalink
Merge pull request #892 from EvildoerXiaoyy/release_4.3.1
Browse files Browse the repository at this point in the history
Release 4.3.1
  • Loading branch information
EvildoerXiaoyy authored Apr 19, 2022
2 parents c62bee2 + bf2b790 commit 02494ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/log_esquery/views/esquery_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def search(self, request):
data = self.params_valid(EsQuerySearchAttrSerializer)
# 调用EsQuery实例
esquery = EsQuery(data)
return Response(esquery.search())
return Response(esquery.search(), headers={"Content-Type": "application/json;charset=UTF-8"})

@list_route(methods=["POST"], url_path="dsl/")
def dsl(self, request):
Expand Down
1 change: 1 addition & 0 deletions config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
# 如果你已经了解每个默认 MIDDLEWARE 的作用,确实需要去掉某些 MIDDLEWARE,或者改动先后顺序,请去掉下面的注释,然后修改
MIDDLEWARE = (
# request instance provider
"django.middleware.gzip.GZipMiddleware",
"blueapps.middleware.request_provider.RequestProvider",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
Expand Down

0 comments on commit 02494ef

Please sign in to comment.