diff OrthancServer/OrthancRestApi/OrthancRestArchive.cpp @ 1522:f938f7779bcb

fixes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Aug 2015 15:37:42 +0200
parents 8bd0d897763f
children 76ed4cf74bb5
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp	Tue Aug 11 13:37:24 2015 +0200
+++ b/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp	Tue Aug 11 15:37:42 2015 +0200
@@ -296,9 +296,9 @@
     }
 
     // Prepare the sending of the ZIP file
-    FilesystemHttpSender sender(tmp.GetPath().c_str());
+    FilesystemHttpSender sender(tmp.GetPath());
     sender.SetContentType("application/zip");
-    sender.SetFilename(id + ".zip");
+    sender.SetContentFilename(id + ".zip");
 
     // Send the ZIP
     call.GetOutput().AnswerStream(sender);
@@ -357,9 +357,9 @@
     }
 
     // Prepare the sending of the ZIP file
-    FilesystemHttpSender sender(tmp.GetPath().c_str());
+    FilesystemHttpSender sender(tmp.GetPath());
     sender.SetContentType("application/zip");
-    sender.SetFilename(id + ".zip");
+    sender.SetContentFilename(id + ".zip");
 
     // Send the ZIP
     call.GetOutput().AnswerStream(sender);