I am trying to added a non-english language for a test using capybara and poltergeist. I have tried:
page.driver.headers = { 'HTTP_ACCEPT_LANGUAGE' => 'pt-BR' }
But that is not working. On the server side, 'HTTP_ACCEPT_LANGUAGE' is always 'en-US'. I have even tried adding another arbitrary header but that isn't coming through on the server side. It seems like poltergeist's header setting doesn't seem to work.