Mercurial > hg > orthanc
comparison Core/HttpServer/EmbeddedResourceHttpHandler.cpp @ 627:b8f738685ad2
fix for visual studio
author | jodogne |
---|---|
date | Fri, 25 Oct 2013 13:24:19 +0200 |
parents | c9a5d72f8481 |
children | 2d0a347e8cfc |
comparison
equal
deleted
inserted
replaced
625:7e7f41a9f33d | 627:b8f738685ad2 |
---|---|
77 { | 77 { |
78 const void* buffer = EmbeddedResources::GetDirectoryResourceBuffer(resourceId_, resourcePath.c_str()); | 78 const void* buffer = EmbeddedResources::GetDirectoryResourceBuffer(resourceId_, resourcePath.c_str()); |
79 size_t size = EmbeddedResources::GetDirectoryResourceSize(resourceId_, resourcePath.c_str()); | 79 size_t size = EmbeddedResources::GetDirectoryResourceSize(resourceId_, resourcePath.c_str()); |
80 output.AnswerBufferWithContentType(buffer, size, contentType); | 80 output.AnswerBufferWithContentType(buffer, size, contentType); |
81 } | 81 } |
82 catch (OrthancException& e) | 82 catch (OrthancException&) |
83 { | 83 { |
84 LOG(WARNING) << "Unable to find HTTP resource: " << resourcePath; | 84 LOG(WARNING) << "Unable to find HTTP resource: " << resourcePath; |
85 output.SendHeader(HttpStatus_404_NotFound); | 85 output.SendHeader(HttpStatus_404_NotFound); |
86 } | 86 } |
87 } | 87 } |