Skip to content

Instantly share code, notes, and snippets.

@shtirlic
Created March 21, 2012 11:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shtirlic/2146256 to your computer and use it in GitHub Desktop.
Save shtirlic/2146256 to your computer and use it in GitHub Desktop.
Disable Rack::Lint
module Rack
class Lint
def call(env = nil)
@app.call(env)
end
end
end
@troelskn
Copy link

Or without monkey patching:

Rack::Server.middleware['development'].delete([Rack::Lint])

@grosser
Copy link

grosser commented May 2, 2018

FYI not using rackup works

require 'rack'
require 'rack/server'
Rack::Server.start(app: ->(_) { [200, {}, ['Hello World']] })

@TSMMark
Copy link

TSMMark commented May 18, 2018

thanks @troelskn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment