diff Core/HttpServer/HttpFileSender.cpp @ 1522:f938f7779bcb

fixes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Aug 2015 15:37:42 +0200
parents 8bd0d897763f
children b1291df2f780
line wrap: on
line diff
--- a/Core/HttpServer/HttpFileSender.cpp	Tue Aug 11 13:37:24 2015 +0200
+++ b/Core/HttpServer/HttpFileSender.cpp	Tue Aug 11 15:37:42 2015 +0200
@@ -40,7 +40,7 @@
 
 namespace Orthanc
 {
-  void HttpFileSender::SetFilename(const std::string& filename)
+  void HttpFileSender::SetContentFilename(const std::string& filename)
   {
     filename_ = filename;
 
@@ -53,9 +53,14 @@
 
   bool HttpFileSender::HasContentFilename(std::string& filename)
   {
-    if (!filename_.empty())
+    if (filename_.empty())
+    {
+      return false;
+    }
+    else
     {
       filename = filename_;
+      return true;
     }
   }