summaryrefslogtreecommitdiffstats
path: root/src/ogClient.py
diff options
context:
space:
mode:
authorAlvaro Neira Ayuso <aneira@soleta.eu>2020-01-18 14:10:31 +0100
committerAlvaro Neira Ayuso <alvaroneay@gmail.com>2020-01-19 19:50:44 +0100
commit8fc251eff34d28ccc500362f0051eee72f700510 (patch)
treef846da513eb5009b7ce10fbaaa07993853692496 /src/ogClient.py
parent44a4662fef5bac67503820b850614ac203c19664 (diff)
(Clean-Up) Rename HTTPParser to restRequest
Diffstat (limited to 'src/ogClient.py')
-rw-r--r--src/ogClient.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ogClient.py b/src/ogClient.py
index 8f1d954..9ad38ff 100644
--- a/src/ogClient.py
+++ b/src/ogClient.py
@@ -13,7 +13,7 @@ import time
import email
from io import StringIO
-from src.HTTPParser import *
+from src.restRequest import *
from src.ogRest import *
from enum import Enum
@@ -83,7 +83,7 @@ class ogClient:
self.connect()
self.data = self.data + data
- httpparser = HTTPParser()
+ request = restRequest()
if not self.trailer:
if self.data.find("\r\n") > 0:
@@ -97,8 +97,8 @@ class ogClient:
self.trailer = True
if self.trailer and len(self.data) >= self.content_len:
- httpparser.parser(self.data)
- self.ogrest.processOperation(httpparser, self)
+ request.parser(self.data)
+ self.ogrest.processOperation(request, self)
# Cleanup state information from request
self.data = ""