Skip to content

Commit 4c5ac3f

Browse files
[pre-commit.ci] pre-commit autoupdate (#1691)
* [pre-commit.ci] pre-commit autoupdate * [pre-commit.ci] auto fixes from pre-commit.com hooks updates: - [github.com/asottile/pyupgrade: v3.1.0 → v3.2.0](asottile/pyupgrade@v3.1.0...v3.2.0) - [github.com/adamchainz/django-upgrade: 1.10.0 → 1.11.0](adamchainz/django-upgrade@1.10.0...1.11.0) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.2 → v3.0.0-alpha.4](pre-commit/mirrors-prettier@v3.0.0-alpha.2...v3.0.0-alpha.4) - [github.com/pre-commit/mirrors-eslint: v8.25.0 → v8.26.0](pre-commit/mirrors-eslint@v8.25.0...v8.26.0) for more information, see https://pre-commit.ci
1 parent 8e3335a commit 4c5ac3f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ repos:
1515
hooks:
1616
- id: doc8
1717
- repo: https://github.com/asottile/pyupgrade
18-
rev: v3.1.0
18+
rev: v3.2.0
1919
hooks:
2020
- id: pyupgrade
2121
args: [--py37-plus]
2222
- repo: https://github.com/adamchainz/django-upgrade
23-
rev: 1.10.0
23+
rev: 1.11.0
2424
hooks:
2525
- id: django-upgrade
2626
args: [--target-version, "3.2"]
@@ -38,14 +38,14 @@ repos:
3838
- id: rst-backticks
3939
- id: rst-directive-colons
4040
- repo: https://github.com/pre-commit/mirrors-prettier
41-
rev: v3.0.0-alpha.2
41+
rev: v3.0.0-alpha.4
4242
hooks:
4343
- id: prettier
4444
types_or: [javascript, css]
4545
args:
4646
- --trailing-comma=es5
4747
- repo: https://github.com/pre-commit/mirrors-eslint
48-
rev: v8.25.0
48+
rev: v8.26.0
4949
hooks:
5050
- id: eslint
5151
files: \.js?$

debug_toolbar/panels/history/panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def generate_stats(self, request, response):
6060
if (
6161
not data
6262
and request.body
63-
and request.META.get("CONTENT_TYPE") == "application/json"
63+
and request.headers.get("content-type") == "application/json"
6464
):
6565
try:
6666
data = json.loads(request.body)

0 commit comments

Comments
 (0)