diff --git a/colly_test.go b/colly_test.go index 4358b63e..c99db7be 100644 --- a/colly_test.go +++ b/colly_test.go @@ -424,6 +424,19 @@ var newCollectorTests = map[string]func(*testing.T){ }, } +func TestNoAcceptHeader(t *testing.T) { + ts := newTestServer() + defer ts.Close() + + c := NewCollector() + + c.OnRequest(func(r *Request) { + r.Headers.Del("Accept") + }) + + c.Visit(ts.URL) +} + func TestNewCollector(t *testing.T) { t.Run("Functional Options", func(t *testing.T) { for name, test := range newCollectorTests {