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

Version Path
cuba-api-0.6.3 lib/cuba_api/no_session_rack.rb~
cuba-api-0.6.2 lib/cuba_api/no_session_rack.rb~
cuba-api-0.6.1 lib/cuba_api/no_session_rack.rb~
cuba-api-0.6.0 lib/cuba_api/no_session_rack.rb~
cuba-api-0.5.1 lib/cuba_api/no_session_rack.rb~
cuba-api-0.5.0 lib/cuba_api/no_session_rack.rb~