lib/session/msg.rb in rsence-2.1.6 vs lib/session/msg.rb in rsence-2.1.7

- old
+ new

@@ -133,11 +133,11 @@ @plugins = @transporter.plugins if options[:servlet] @do_gzip = false else - @response.content_type = 'text/javascript; charset=utf-8' + @response['Content-Type'] = 'text/javascript; charset=utf-8' @response['Cache-Control'] = 'no-cache' # gnu-zipped responses: if @request.header['accept-encoding'] and @request.header['accept-encoding'].include?('gzip') and not @config[:no_gzip] @response['Content-Encoding'] = 'gzip' @@ -266,10 +266,10 @@ gzwriter.close else outp = buf_json(buffer) end - @response['content-length'] = outp.size + @response['Content-Length'] = outp.bytesize.to_s @response.body = outp @response_sent = true end