yrequest: remove double Connection->Method = M_PUT

Origin commit data
------------------
Branch: ni/coolstream
Commit: d41f190b4d
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-03-07 (Mon, 07 Mar 2016)

Origin message was:
------------------
- yrequest: remove double Connection->Method = M_PUT

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2016-03-07 20:17:51 +01:00
parent 5f61df8be2
commit c8418d2c17

View File

@@ -124,9 +124,8 @@ bool CWebserverRequest::ParseStartLine(std::string start_line) {
analyzeURL(url);
UrlData["httprotocol"] = Connection->httprotocol;
// determine http Method
if (method.compare("POST") == 0) Connection->Method = M_POST;
if (method.compare("POST") == 0) Connection->Method = M_POST;
else if (method.compare("GET") == 0) Connection->Method = M_GET;
else if (method.compare("PUT") == 0) Connection->Method = M_PUT;
else if (method.compare("HEAD") == 0) Connection->Method = M_HEAD;
else if (method.compare("PUT") == 0) Connection->Method = M_PUT;
else if (method.compare("DELETE") == 0) Connection->Method = M_DELETE;