summaryrefslogtreecommitdiffstats
path: root/src/restRequest.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-02-26 17:57:58 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-02-26 17:58:15 +0100
commita85c113ee7aeaf7348de83fe3aa4dcd9d525a8bf (patch)
treecb47863acc07f6ace6dc562ffc37d3557af743c3 /src/restRequest.py
parent8e81b8091ebabd7b98e443432d3a7f5044ed2538 (diff)
Rename operation to method
As defined by the HTTP standard.
Diffstat (limited to 'src/restRequest.py')
-rw-r--r--src/restRequest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/restRequest.py b/src/restRequest.py
index 6ed00c4..b0baa15 100644
--- a/src/restRequest.py
+++ b/src/restRequest.py
@@ -48,7 +48,7 @@ class restRequest:
self.contentLen = int(self.headers['Content-Length'])
if (not self.requestLine == None or not self.requestLine == ''):
- self.operation = self.requestLine.split('/', 1)[0]
+ self.method = self.requestLine.split('/', 1)[0]
self.URI = self.requestLine.split('/', 1)[1]
if not self.contentLen == 0:
@@ -100,8 +100,8 @@ class restRequest:
if "code" in json_param:
self.code = json_param["code"]
- def getRequestOP(self):
- return self.operation
+ def get_method(self):
+ return self.method
def getURI(self):
return self.URI