is it possible to set the http request header with capybara? i have seen several posts like this
Capybara.current_session.driver.headers = { 'Accept-Language' => 'de' }
Capybara.current_session.driver.header('Accept-Language', 'de')
but doesn't seem to work. I am trying to set the following header
X-TEST-IP : 127.0.0.1
That when i visit my site, I am authenticated. Any ideas? Thanks