Sha256: 88bb8255abcbe35b510c0b07ca2b107a3b90fb4a89e2047c31ea2a84859b601c
Contents?: true
Size: 365 Bytes
Versions: 38
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true # https://github.com/rails/rails/issues/22965 module Shimmer class CloudflareProxy def initialize(app) @app = app end def call(env) return @app.call(env) unless env["HTTP_CF_VISITOR"] env["HTTP_X_FORWARDED_PROTO"] = JSON.parse(env["HTTP_CF_VISITOR"])["scheme"] @app.call(env) end end end
Version data entries
38 entries across 38 versions & 1 rubygems