Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1521:3606278d305e | 1522:f938f7779bcb |
---|---|
38 | 38 |
39 #include <boost/lexical_cast.hpp> | 39 #include <boost/lexical_cast.hpp> |
40 | 40 |
41 namespace Orthanc | 41 namespace Orthanc |
42 { | 42 { |
43 void HttpFileSender::SetFilename(const std::string& filename) | 43 void HttpFileSender::SetContentFilename(const std::string& filename) |
44 { | 44 { |
45 filename_ = filename; | 45 filename_ = filename; |
46 | 46 |
47 if (contentType_.empty()) | 47 if (contentType_.empty()) |
48 { | 48 { |
51 } | 51 } |
52 | 52 |
53 | 53 |
54 bool HttpFileSender::HasContentFilename(std::string& filename) | 54 bool HttpFileSender::HasContentFilename(std::string& filename) |
55 { | 55 { |
56 if (!filename_.empty()) | 56 if (filename_.empty()) |
57 { | |
58 return false; | |
59 } | |
60 else | |
57 { | 61 { |
58 filename = filename_; | 62 filename = filename_; |
63 return true; | |
59 } | 64 } |
60 } | 65 } |
61 | 66 |
62 std::string HttpFileSender::GetContentType() | 67 std::string HttpFileSender::GetContentType() |
63 { | 68 { |