Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove deprecated webhook header (#6805)
Damian Wysocki42a1025aef27
diff --git a/saleor/plugins/webhook/tasks.py b/saleor/plugins/webhook/tasks.pyindex 7b1d58374a..8233ad7c65 100644--- a/saleor/plugins/webhook/tasks.py+++ b/saleor/plugins/webhook/tasks.py@@ -58,10 +58,6 @@ def send_webhook_using_http(target_url, message, domain, signature, event_type):"X-Saleor-Signature": signature,}- if signature:- # This header is depreceated and will be removed in Saleor3.0- headers["X-Saleor-HMAC-SHA256"] = f"sha1={signature}"-response = requests.post(target_url, data=message, headers=headers, timeout=WEBHOOK_TIMEOUT)diff --git a/saleor/plugins/webhook/tests/test_webhook_protocols.py b/saleor/plugins/webhook/tests/test_webhook_protocols.pyindex 649168a7de..7db8f14433 100644--- a/saleor/plugins/webhook/tests/test_webhook_protocols.py+++ b/saleor/plugins/webhook/tests/test_webhook_protocols.py@@ -226,7 +226,6 @@ def test_trigger_webhooks_with_http_and_secret_key("X-Saleor-Event": "order_created","X-Saleor-Domain": "mirumee.com","X-Saleor-Signature": expected_signature,- "X-Saleor-HMAC-SHA256": f"sha1={expected_signature}",}mock_request.assert_called_once_with(