summaryrefslogtreecommitdiffstats
path: root/src/ogClient.py
diff options
context:
space:
mode:
authorAlvaro Neira Ayuso <aneira@soleta.eu>2019-12-16 11:17:09 +0100
committerAlvaro Neira Ayuso <alvaroneay@gmail.com>2020-01-19 19:50:44 +0100
commitdfc97ffedb9a356299b593f76ce057f5953a77ab (patch)
tree031c174ac09f571b706d228f5f4ce908f15a2ae3 /src/ogClient.py
parent77906be87fc67a49cf4a34fd0a03dfb7a10d74ae (diff)
Merge ogRest and ogProcess to have only one class
Diffstat (limited to 'src/ogClient.py')
-rw-r--r--src/ogClient.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ogClient.py b/src/ogClient.py
index 48ae5e7..fb87bac 100644
--- a/src/ogClient.py
+++ b/src/ogClient.py
@@ -6,7 +6,7 @@ import email
from io import StringIO
from src.HTTPParser import *
-from src.ogProcess import *
+from src.ogRest import *
from enum import Enum
class State(Enum):
@@ -74,7 +74,7 @@ class ogClient:
self.data = self.data + data
httpparser = HTTPParser()
- ogprocess = ogProcess()
+ ogrest = ogRest()
if not self.trailer:
if self.data.find("\r\n") > 0:
@@ -89,7 +89,7 @@ class ogClient:
if self.trailer and len(self.data) >= self.content_len:
httpparser.parser(self.data)
- ogprocess.processOperation(httpparser.getRequestOP(), httpparser.getURI(), self)
+ ogrest.processOperation(httpparser.getRequestOP(), httpparser.getURI(), self)
# Cleanup state information from request
self.data = ""