Created
May 3, 2012 07:47
-
-
Save l4u/2584103 to your computer and use it in GitHub Desktop.
Allow Rack Static to serve files with HTTP POST, for the stupid Facebook canvas apps
This file contains hidden or 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
module Rack | |
class File | |
ALLOWED_VERBS = %w[GET HEAD POST] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment