lib/net/dav/item.rb in net_dav-0.1.0 vs lib/net/dav/item.rb in net_dav-0.1.1
- old
+ new
@@ -16,10 +16,10 @@
@uri
end
def initialize(dav, uri, type, size) #:nodoc:
@uri = uri
- @size = size
+ @size = size.to_i rescue nil
@type = type
@dav = dav
end
# Get content from server if needed and return as string