rubydora icon indicating copy to clipboard operation
rubydora copied to clipboard

Bug in Datastream#entity_size

Open dchandekstark opened this issue 9 years ago • 0 comments

The reference to response.headers[:content_length] is incorrect and raises a NoMethodError. The method should probably just be:

def entity_size(response)
  response.content_length || response.body.size
end

This issue is filed for reference, not expecting a patch.

dchandekstark avatar Jan 04 '16 22:01 dchandekstark