Created
July 20, 2012 16:32
-
-
Save marekjelen/3151705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clone Thick repo (git://github.com/marekjelen/thick.git) | |
Install required gems (rack, rake, rspec, sinatra) | |
JRuby version: jruby-1.7.0.preview1 | |
--------------------- | |
cd thick/example | |
jruby ../bin/thick -R | |
curl http://localhost:9292/ | |
and the request end with const missing error. | |
--------------------- | |
Edit jruby-1.7.0.preview1/gems/rack-protection-1.2.0/lib/rack/protection.rb in the block remove starting "::" from names | |
use Rack::Protection::FrameOptions, options unless except.include? :frame_options | |
use Rack::Protection::IPSpoofing, options unless except.include? :ip_spoofing | |
use Rack::Protection::JsonCsrf, options unless except.include? :json_csrf | |
use Rack::Protection::PathTraversal, options unless except.include? :path_traversal | |
use Rack::Protection::RemoteToken, options unless except.include? :remote_token | |
use Rack::Protection::SessionHijacking, options unless except.include? :session_hijacking | |
use Rack::Protection::XSSHeader, options unless except.include? :xss_header | |
restart the server and it ends with a different error in Sinatra. | |
--------------------- | |
The "extreme" use-case this happens (https://github.com/marekjelen/thick/blob/loader/lib/thick/loader.rb) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment