mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Allow "Post" Requests from REST input.
This commit is contained in:
@@ -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() ){
|
||||
|
||||
Reference in New Issue
Block a user