rocket_pants 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,8 +41,9 @@ module RocketPants
41
41
 
42
42
  def wrap_response_in_jsonp
43
43
  # Finally, set up the callback using the JSONP parameter.
44
- response.content_type = 'application/javascript'
45
- response.body = "#{jsonp_parameter}(#{response.body});"
44
+ response.content_type = 'application/javascript'
45
+ response.body = "#{jsonp_parameter}(#{response.body});"
46
+ headers['Content-Length'] = Rack::Utils.bytesize(response.body).to_s
46
47
  end
47
48
 
48
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_pants
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-02 00:00:00.000000000 Z
12
+ date: 2012-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack