lib/rsence/msg.rb in rsence-pre-2.2.2.1 vs lib/rsence/msg.rb in rsence-pre-2.3.0.0
- old
+ new
@@ -133,10 +133,10 @@
@plugins = @transporter.plugins
if options[:servlet]
@do_gzip = false
else
- @response['Content-Type'] = 'text/javascript; charset=utf-8'
+ @response['Content-Type'] = 'application/json; 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'