plugins/ticket/lib/upload.rb in rsence-pre-2.1.0.21 vs plugins/ticket/lib/upload.rb in rsence-pre-2.1.8.0
- old
+ new
@@ -174,11 +174,11 @@
<body></body>
</html>
}
response.status = 200
- response['content-type'] = 'text/html; charset=UTF-8'
- response['content-length'] = response_body.size.to_s
+ response['Content-Type'] = 'text/html; charset=UTF-8'
+ response['Content-Length'] = response_body.bytesize.to_s
response.body = response_body
end
def get_uploads( ticket_id, with_data=false )
uploads = []