Kiss A simpler, smarter web application framework for Ruby

Rack::ErrorsOK Subclass of Object

Methods

Description

Rack::Facebook formats HTTP responses to remove certain status codes and HTML entities that are invalid as FBML responses.

Public Class Methods

new(app) source

Not documented

    # File lib/kiss/rack/errors_ok.rb, line 5
    def initialize(app)
      @app = app
    end
    

Public Instance Methods

call(env) source

Not documented

    # File lib/kiss/rack/errors_ok.rb, line 9
    def call(env)
      code, headers, body = @app.call(env)
      
      if code >= 500 && code < 600
        code = 200
      end
      
      [ code, headers, body ]
    end
    

Disabled; run with $DEBUG to generate this.