lib/plezi/helpers/http_sender.rb in plezi-0.12.9 vs lib/plezi/helpers/http_sender.rb in plezi-0.12.10

- old
+ new

@@ -59,10 +59,10 @@ return false end # sends raw data through the connection. always returns true (data send). def send_raw_data request, response, data, mime, status_code = 200, headers = {} headers.each {|k, v| response[k] = v} - response.status = status_code + response.status = status_code if response.status == 200 # avoid resetting a manually set status response['content-type'] = mime response['cache-control'] ||= 'public, max-age=86400' response.body = data # response['content-length'] = data.bytesize #this one is automated by the server and should be avoided to support Range requests. true