mloughran (owner)

Revisions

gist: 222578 Download_button fork
public
Public Clone URL: git://gist.github.com/222578.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
class ExpectContinue
  def initialize(app)
    @app = app
  end
 
  def call(env)
    if env['HTTP_EXPECT'] =~ /\A100-continue\z/i
      [100, '', {}]
    else
      @app.call(env)
    end
  end
end