diff Core/HttpServer/HttpFileSender.cpp @ 217:1ac3aacd10a5

simplifications
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 29 Nov 2012 12:22:23 +0100
parents de640de989b8
children 64925c94825c
line wrap: on
line diff
--- a/Core/HttpServer/HttpFileSender.cpp	Thu Nov 29 11:57:35 2012 +0100
+++ b/Core/HttpServer/HttpFileSender.cpp	Thu Nov 29 12:22:23 2012 +0100
@@ -46,9 +46,9 @@
       header += "Content-Type: " + contentType_ + "\r\n";
     }
 
-    if (filename_.size() > 0)
+    if (downloadFilename_.size() > 0)
     {
-      header += "Content-Disposition: attachment; filename=\"" + filename_ + "\"\r\n";
+      header += "Content-Disposition: attachment; filename=\"" + downloadFilename_ + "\"\r\n";
     }
   
     output.SendCustomOkHeader(header);