diff 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
line wrap: on
line diff
--- a/Core/HttpServer/EmbeddedResourceHttpHandler.cpp	Wed Jan 30 14:34:36 2013 +0100
+++ b/Core/HttpServer/EmbeddedResourceHttpHandler.cpp	Wed Jan 30 17:56:44 2013 +0100
@@ -58,13 +58,13 @@
 
   void EmbeddedResourceHttpHandler::Handle(
     HttpOutput& output,
-    const std::string& method,
+    Orthanc_HttpMethod method,
     const UriComponents& uri,
     const Arguments& headers,
     const Arguments& arguments,
     const std::string&)
   {
-    if (method != "GET")
+    if (method != Orthanc_HttpMethod_Get)
     {
       output.SendMethodNotAllowedError("GET");
       return;