Mercurial > hg > orthanc
comparison Core/HttpServer/EmbeddedResourceHttpHandler.cpp @ 355:753e69f9326e
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Jan 2013 17:56:44 +0100 |
parents | 64925c94825c |
children | bdd72233b105 |
comparison
equal
deleted
inserted
replaced
354:4d76fce206ef | 355:753e69f9326e |
---|---|
56 } | 56 } |
57 | 57 |
58 | 58 |
59 void EmbeddedResourceHttpHandler::Handle( | 59 void EmbeddedResourceHttpHandler::Handle( |
60 HttpOutput& output, | 60 HttpOutput& output, |
61 const std::string& method, | 61 Orthanc_HttpMethod method, |
62 const UriComponents& uri, | 62 const UriComponents& uri, |
63 const Arguments& headers, | 63 const Arguments& headers, |
64 const Arguments& arguments, | 64 const Arguments& arguments, |
65 const std::string&) | 65 const std::string&) |
66 { | 66 { |
67 if (method != "GET") | 67 if (method != Orthanc_HttpMethod_Get) |
68 { | 68 { |
69 output.SendMethodNotAllowedError("GET"); | 69 output.SendMethodNotAllowedError("GET"); |
70 return; | 70 return; |
71 } | 71 } |
72 | 72 |