Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unneeded duplicate call to has_callback?

  • Loading branch information...
commit 2c2f6bb0c3aaa35bf6912e243e8752eb20f6d770 1 parent 38f9a4a
@mtodd mtodd authored
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!
Please sign in to comment.
Something went wrong with that request. Please try again.