diff Core/FileStorage/StorageAccessor.cpp @ 1550:2c7d5eb588e6

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Aug 2015 15:57:44 +0200
parents e5e975e9b738
children 55d52567bebb
line wrap: on
line diff
--- a/Core/FileStorage/StorageAccessor.cpp	Mon Aug 17 10:47:04 2015 +0200
+++ b/Core/FileStorage/StorageAccessor.cpp	Mon Aug 17 15:57:44 2015 +0200
@@ -129,7 +129,7 @@
   void StorageAccessor::SetupSender(BufferHttpSender& sender,
                                     const FileInfo& info)
   {
-    Read(sender.GetBuffer(), info);
+    area_.Read(sender.GetBuffer(), info.GetUuid(), info.GetContentType());
     sender.SetContentType(GetMimeType(info.GetContentType()));
     sender.SetContentFilename(info.GetUuid() + std::string(GetFileExtension(info.GetContentType())));
   }