Module: Down::NetHttp::DownloadedFile

Defined in:
lib/down/net_http.rb

Instance Method Summary collapse

Instance Method Details

#content_typeObject



267
268
269
# File 'lib/down/net_http.rb', line 267

def content_type
  super unless meta["content-type"].to_s.empty?
end

#original_filenameObject



263
264
265
# File 'lib/down/net_http.rb', line 263

def original_filename
  filename_from_content_disposition || filename_from_uri
end