Skip to content
Browse files

Include middleware fix from Hongli

  • Loading branch information...
1 parent bf23892 commit 6e7671735c831450e3dfef487a029f27788f57a9 @mmangino mmangino committed Mar 31, 2009
Showing with 3 additions and 4 deletions.
  1. +1 −1 facebooker.gemspec
  2. +1 −1 lib/facebooker/rails/extensions/rack_setup.rb
  3. +1 −1 lib/facebooker/version.rb
  4. +0 −1 lib/rack/facebook.rb
View
2 facebooker.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{facebooker}
- s.version = "1.0.24"
+ s.version = "1.0.25"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Chad Fowler", "Patrick Ewing", "Mike Mangino", "Shane Vitarana", "Corey Innis"]
View
2 lib/facebooker/rails/extensions/rack_setup.rb
@@ -1,2 +1,2 @@
require 'rack/facebook'
-ActionController::Dispatcher.middleware.insert_after 'ActionController::Failsafe',Rack::Facebook, Facebooker.secret_key
+ActionController::Dispatcher.middleware.insert_after 'ActionController::RewindableInput',Rack::Facebook, Facebooker.secret_key
View
2 lib/facebooker/version.rb
@@ -2,7 +2,7 @@ module Facebooker #:nodoc:
module VERSION #:nodoc:
MAJOR = 1
MINOR = 0
- TINY = 24
+ TINY = 25
STRING = [MAJOR, MINOR, TINY].join('.')
end
View
1 lib/rack/facebook.rb
@@ -33,7 +33,6 @@ def initialize(app, secret_key, &condition)
def call(env)
if @condition.nil? || @condition.call(env)
request = Rack::Request.new(env)
- request.params
fb_params = extract_fb_sig_params(request.POST)
unless fb_params.empty?
unless signature_is_valid?(fb_params, request.POST['fb_sig'])

0 comments on commit 6e76717

Please sign in to comment.
Something went wrong with that request. Please try again.