From b6806de363683a1b9befab1cf0dfeaa20234d674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0nan=C3=A7=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 6 Nov 2024 16:16:33 -0500 Subject: [PATCH] Remove unused NetworkManager.ExtraHTTPHeaders --- common/network_manager.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/common/network_manager.go b/common/network_manager.go index be4840029..d796804a2 100644 --- a/common/network_manager.go +++ b/common/network_manager.go @@ -26,7 +26,6 @@ import ( "github.com/chromedp/cdproto/emulation" "github.com/chromedp/cdproto/fetch" "github.com/chromedp/cdproto/network" - "github.com/grafana/sobek" ) // Credentials holds HTTP authentication credentials. @@ -731,12 +730,6 @@ func (m *NetworkManager) Authenticate(credentials Credentials) error { return nil } -// ExtraHTTPHeaders returns the currently set extra HTTP request headers. -func (m *NetworkManager) ExtraHTTPHeaders() sobek.Value { - rt := m.vu.Runtime() - return rt.ToValue(m.extraHTTPHeaders) -} - // SetExtraHTTPHeaders sets extra HTTP request headers to be sent with every request. func (m *NetworkManager) SetExtraHTTPHeaders(headers network.Headers) error { err := network.