diff Core/HttpServer/FilesystemHttpHandler.cpp @ 355:753e69f9326e

refactoring
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 30 Jan 2013 17:56:44 +0100
parents 78a8eaa5f30b
children bdd72233b105
line wrap: on
line diff
--- a/Core/HttpServer/FilesystemHttpHandler.cpp	Wed Jan 30 14:34:36 2013 +0100
+++ b/Core/HttpServer/FilesystemHttpHandler.cpp	Wed Jan 30 17:56:44 2013 +0100
@@ -127,13 +127,13 @@
 
   void FilesystemHttpHandler::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;