comparison 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
comparison
equal deleted inserted replaced
216:e5d5d4a9a326 217:1ac3aacd10a5
44 if (contentType_.size() > 0) 44 if (contentType_.size() > 0)
45 { 45 {
46 header += "Content-Type: " + contentType_ + "\r\n"; 46 header += "Content-Type: " + contentType_ + "\r\n";
47 } 47 }
48 48
49 if (filename_.size() > 0) 49 if (downloadFilename_.size() > 0)
50 { 50 {
51 header += "Content-Disposition: attachment; filename=\"" + filename_ + "\"\r\n"; 51 header += "Content-Disposition: attachment; filename=\"" + downloadFilename_ + "\"\r\n";
52 } 52 }
53 53
54 output.SendCustomOkHeader(header); 54 output.SendCustomOkHeader(header);
55 } 55 }
56 56