Allow "Post" Requests from REST input.

This commit is contained in:
Ken Moore
2016-01-05 15:54:55 -05:00
parent 838a5d9f60
commit b425c7bb89

View File

@@ -117,7 +117,7 @@ void WebSocket::EvaluateREST(QString msg){
void WebSocket::EvaluateRequest(const RestInputStruct &REQ){
RestOutputStruct out;
out.in_struct = REQ;
if(!REQ.VERB.isEmpty() && REQ.VERB != "GET"){
if(!REQ.VERB.isEmpty() && REQ.VERB != "GET" && REQ.VERB!="POST"){
//Non-supported request (at the moment) - return an error message
out.CODE = RestOutputStruct::BADREQUEST;
}else if(out.in_struct.name.isEmpty() || out.in_struct.namesp.isEmpty() ){