Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.cpp @ 1113:ba5c0908600c
Refactoring of HttpOutput ("Content-Length" header is now always sent)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Sep 2014 15:51:20 +0200 |
parents | ce6386b37afd |
children | bf67431a7383 |
comparison
equal
deleted
inserted
replaced
1112:a119f9ae3640 | 1113:ba5c0908600c |
---|---|
864 | 864 |
865 int64_t id; | 865 int64_t id; |
866 ResourceType type; | 866 ResourceType type; |
867 if (!db_->LookupResource(instanceUuid, id, type)) | 867 if (!db_->LookupResource(instanceUuid, id, type)) |
868 { | 868 { |
869 throw OrthancException(ErrorCode_InternalError); | 869 throw OrthancException(ErrorCode_UnknownResource); |
870 } | 870 } |
871 | 871 |
872 if (db_->LookupAttachment(attachment, id, contentType)) | 872 if (db_->LookupAttachment(attachment, id, contentType)) |
873 { | 873 { |
874 assert(attachment.GetContentType() == contentType); | 874 assert(attachment.GetContentType() == contentType); |