summaryrefslogtreecommitdiff
path: root/lib/httpserver/HTTPRequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/httpserver/HTTPRequest.cpp')
-rw-r--r--lib/httpserver/HTTPRequest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/httpserver/HTTPRequest.cpp b/lib/httpserver/HTTPRequest.cpp
index aa064363..6154a4d1 100644
--- a/lib/httpserver/HTTPRequest.cpp
+++ b/lib/httpserver/HTTPRequest.cpp
@@ -134,20 +134,20 @@ bool HTTPRequest::Receive(IOStreamGetLine &rGetLine, int Timeout)
}
else
{
- std::string method = requestLine.substr(0, p);
- if (method == "GET")
+ mHttpVerb = requestLine.substr(0, p);
+ if (mHttpVerb == "GET")
{
mMethod = Method_GET;
}
- else if (method == "HEAD")
+ else if (mHttpVerb == "HEAD")
{
mMethod = Method_HEAD;
}
- else if (method == "POST")
+ else if (mHttpVerb == "POST")
{
mMethod = Method_POST;
}
- else if (method == "PUT")
+ else if (mHttpVerb == "PUT")
{
mMethod = Method_PUT;
}