diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f67d9999b..506b2deff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,12 +15,12 @@ repos: hooks: - id: doc8 - repo: https://github.com/asottile/pyupgrade - rev: v3.1.0 + rev: v3.2.0 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/adamchainz/django-upgrade - rev: 1.10.0 + rev: 1.11.0 hooks: - id: django-upgrade args: [--target-version, "3.2"] @@ -38,14 +38,14 @@ repos: - id: rst-backticks - id: rst-directive-colons - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.2 + rev: v3.0.0-alpha.4 hooks: - id: prettier types_or: [javascript, css] args: - --trailing-comma=es5 - repo: https://github.com/pre-commit/mirrors-eslint - rev: v8.25.0 + rev: v8.26.0 hooks: - id: eslint files: \.js?$ diff --git a/debug_toolbar/panels/history/panel.py b/debug_toolbar/panels/history/panel.py index 2e637083a..8bd0e8f65 100644 --- a/debug_toolbar/panels/history/panel.py +++ b/debug_toolbar/panels/history/panel.py @@ -60,7 +60,7 @@ def generate_stats(self, request, response): if ( not data and request.body - and request.META.get("CONTENT_TYPE") == "application/json" + and request.headers.get("content-type") == "application/json" ): try: data = json.loads(request.body)