Sha256: 668b41d5e88f9939a1dea3fb13e8773f11b4c499f8ee45178ae15a677571626d

Contents?: true

Size: 292 Bytes

Versions: 3

Compression:

Stored size: 292 Bytes

Contents

# https://gist.github.com/358664 (by aslakhellesoy)
module RackHeaderHack
  def set_headers(headers)
    driver = page.driver.browser
    def driver.env
      @env.merge(super)
    end
    def driver.env=(env)
      @env = env
    end
    driver.env = headers
  end
end
World(RackHeaderHack)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
utf8_enforcer_workaround-1.0.1 features/support/user_agent.rb
utf8_enforcer_workaround-1.0.0 features/support/user_agent.rb
utf8_enforcer_workaround-0.0.2 features/support/user_agent.rb