Sha256: dcd90107a66c9d614edeb303e8caba9f2b6f34699be555dc4eb92865c5fb201b
Contents?: true
Size: 495 Bytes
Versions: 1
Compression:
Stored size: 495 Bytes
Contents
module Xing module Static class BackendUrlCookie def initialize(app, backend_url) @backend_url = backend_url @app = app end def call(env) status, headers, body = @app.call(env) headers["Set-Cookie"] = [ (headers["Set-Cookie"]), "lrdBackendUrl=#@backend_url", "xingBackendUrl=#{@backend_url}" ].compact.join("\n") unless @backend_url.nil? [ status, headers, body ] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xing-backend-0.0.23 | lib/xing/static/backend_url_cookie.rb |