mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
lint
This commit is contained in:
@@ -91,6 +91,7 @@ func TestHeadersAuthStrategy(t *testing.T) {
|
||||
strategy.Apply(req)
|
||||
|
||||
// Use direct map access since headers preserve exact casing
|
||||
//nolint
|
||||
if got := req.Header["X-API-Key"]; len(got) == 0 || got[0] != "secret123" {
|
||||
t.Errorf("X-API-Key = %v, want [secret123]", got)
|
||||
}
|
||||
@@ -104,6 +105,7 @@ func TestHeadersAuthStrategy(t *testing.T) {
|
||||
strategy.ApplyOnRR(req)
|
||||
|
||||
// Use direct map access since headers preserve exact casing
|
||||
//nolint
|
||||
if got := req.Header["X-API-Key"]; len(got) == 0 || got[0] != "secret123" {
|
||||
t.Errorf("X-API-Key = %v, want [secret123]", got)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user