From c8418d2c170b4f70e5a9e9c92429a93287a10269 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 7 Mar 2016 20:17:51 +0100 Subject: [PATCH] yrequest: remove double Connection->Method = M_PUT Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d41f190b4d29b44a073632e66fef51779487b604 Author: vanhofen 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 --- src/nhttpd/yhttpd_core/yrequest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nhttpd/yhttpd_core/yrequest.cpp b/src/nhttpd/yhttpd_core/yrequest.cpp index 85f25c99f..2b4ae42af 100644 --- a/src/nhttpd/yhttpd_core/yrequest.cpp +++ b/src/nhttpd/yhttpd_core/yrequest.cpp @@ -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;