Skip to content

Instantly share code, notes, and snippets.

@mloughran
Created October 30, 2009 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mloughran/222578 to your computer and use it in GitHub Desktop.
Save mloughran/222578 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment