File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 get_versioned_filename ,
1414)
1515from .config import TEMPLATES_DIR , STATIC_DIR
16- from . import csp , feature_policy , report_api
16+ from . import csp , feature_policy
1717import logging
1818
1919
@@ -53,8 +53,6 @@ def add_header(response):
5353 if response .status_code == 200 or response .status_code == 304 :
5454 response .cache_control .public = True
5555 response .cache_control .max_age = 600
56- # Add Report API header
57- response .headers ["Report-To" ] = report_api .report_to
5856 return response
5957
6058
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -254,8 +254,3 @@ def test_test_webvitals_js_versioned(client):
254254def test_embed (client ):
255255 response = client .get ("/en/2022/embeds/structured-data-sankey" )
256256 assert response .status_code == 200
257-
258-
259- def test_report_to_header (client ):
260- response = client .get ("/en/2022/" )
261- assert response .headers ["Report-To" ].startswith ("{" )
You can’t perform that action at this time.
0 commit comments