Sha256: 736b4ba7418f39cf5919ca9dd0de4fe6bc4ee267c0dbe706e859fa9d10c103f2
Contents?: true
Size: 329 Bytes
Versions: 6
Compression:
Stored size: 329 Bytes
Contents
module CubaApi class NoSessionRack def initialize( app, regexp ) @app = app @regexp = regexp end def call( env ) status, headers, resp = @app.call( env ) if env[ 'PATH_INFO' ] =~ @regexp headers.delete( 'Set-Cookie' ) end [ status, headers, resp ] end end end
Version data entries
6 entries across 6 versions & 1 rubygems