dima-exe-juggernaut 0.5.9.22 → 0.5.9.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/juggernaut/server.rb +4 -1
  2. metadata +1 -1
@@ -164,8 +164,11 @@ module Juggernaut
164
164
  h << "HTTP/1.1 200 OK"
165
165
  h << "Cache-Control: private, max-age=0, must-revalidate"
166
166
  h << "Content-Type: application/javascript"
167
+ h << "Connection: keep-alive"
168
+ h << "Transfer-Encoding: chunked"
169
+ h << "Content-Length: #{msg.to_s.size}"
167
170
  h = h.join("\r\n")
168
- h + "\r\n\r\n" + msg.to_s
171
+ h + "\r\n\r\n" + msg.to_s + "\r\n"
169
172
  end
170
173
 
171
174
  # As far as I'm aware, send_data
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dima-exe-juggernaut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.9.22
4
+ version: 0.5.9.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex MacCaw