lib/juggernaut/server.rb in dima-exe-juggernaut-0.5.9.22 vs lib/juggernaut/server.rb in dima-exe-juggernaut-0.5.9.23

- old
+ new

@@ -162,11 +162,14 @@ def add_http_response_headers(msg) h = [] h << "HTTP/1.1 200 OK" h << "Cache-Control: private, max-age=0, must-revalidate" h << "Content-Type: application/javascript" + h << "Connection: keep-alive" + h << "Transfer-Encoding: chunked" + h << "Content-Length: #{msg.to_s.size}" h = h.join("\r\n") - h + "\r\n\r\n" + msg.to_s + h + "\r\n\r\n" + msg.to_s + "\r\n" end # As far as I'm aware, send_data # never throws an exception def publish(msg)