Browse Source

fix compiler warning

David Rose 16 years ago
parent
commit
8a4ed4aa74
1 changed files with 2 additions and 2 deletions
  1. 2 2
      direct/src/http/http_request.h

+ 2 - 2
direct/src/http/http_request.h

@@ -82,11 +82,11 @@ PUBLISHED:
         return false;
         return false;
     }
     }
 
 
-    char * GetOption(std::string in)
+    const char * GetOption(std::string in)
     {
     {
         const std::string * answer = _parser.GetOption(in);
         const std::string * answer = _parser.GetOption(in);
         if(answer != NULL)
         if(answer != NULL)
-	   return (char *)answer->c_str();
+	   return answer->c_str();
         return "";
         return "";
     }
     }
     std::string   GetRequestOptionString()
     std::string   GetRequestOptionString()