Permalink
Browse files

Remove unneeded duplicate call to has_callback?

  • Loading branch information...
1 parent 38f9a4a commit 2c2f6bb0c3aaa35bf6912e243e8752eb20f6d770 @mtodd mtodd committed Apr 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/contrib/jsonp.rb
View
2 lib/rack/contrib/jsonp.rb
@@ -32,7 +32,7 @@ def call(env)
headers = HeaderHash.new(headers)
- if is_json?(headers) && has_callback?(request)
+ if is_json?(headers) && callback
response = pad(callback, response)
# No longer json, its javascript!

0 comments on commit 2c2f6bb

Please sign in to comment.