summaryrefslogtreecommitdiffstats
path: root/src/restRequest.py
Commit message (Collapse)AuthorAgeFilesLines
* use lowercase attribute name in restRequestOpenGnSys Support Team2020-03-091-13/+13
|
* Rename operation to methodOpenGnSys Support Team2020-02-261-3/+3
| | | | As defined by the HTTP standard.
* Search the key in the parsed jsonJavier Sanchez Parra2020-02-261-13/+12
| | | | | | | | | | | | | | | | | | | | | Testing the ogClient I found that if a value of the json match a key the ogClient has an exception. For example: body = "... shell/run {"run": "fdisk -l"} ..." CURRENT Enters in if "disk" in body:... if "run" in body:... EXPECTED Enters in if "run" in body:... This commit changes the behaviour to search for the keys in the dictionary returned by json.loads() instead of searching in the raw string. This way the ogClient looks for the keys without searching in the values.
* remove unused gettersOpenGnSys Support Team2020-02-211-18/+0
|
* Fix parseGetConf(...) configuration parsingRoberto Hueso Gómez2020-02-031-1/+1
| | | | This patch also reformats the response to the /refresh command.
* (Clean-Up) Rename HTTPParser file to restRequestAlvaro Neira Ayuso2020-01-191-0/+165