Skip to content

Commit b98e406

Browse files
committed
Use preferred header syntax
1 parent 6b5d099 commit b98e406

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

debug_toolbar/middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,6 @@ def generate_headers(request, response, panels):
132132
)
133133

134134
if stats_data:
135-
response["Server-Timing"] = ", ".join(stats_data)
135+
response.headers["Server-Timing"] = ", ".join(stats_data)
136136

137137
return response

debug_toolbar/panels/history/panel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def generate_headers(self, request, response):
2525
observe_request = get_observe_request()
2626
store_id = getattr(self.toolbar, "store_id")
2727
if store_id and observe_request(request):
28-
response["DJDT-STORE-ID"] = store_id
28+
response.headers["DJDT-STORE-ID"] = store_id
2929
return response
3030

3131
@property

0 commit comments

Comments
 (0)