summaryrefslogtreecommitdiffstats
path: root/src/ogClient.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ogClient.py')
-rw-r--r--src/ogClient.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ogClient.py b/src/ogClient.py
index 04b6d01..31ee5d3 100644
--- a/src/ogClient.py
+++ b/src/ogClient.py
@@ -47,6 +47,7 @@ class ogClient:
self.ip = self.CONFIG['opengnsys']['ip']
self.port = self.CONFIG['opengnsys']['port']
self.ogrest = ogRest(self.CONFIG)
+ self.seq = None
def get_socket(self):
return self.sock
@@ -144,6 +145,8 @@ class ogClient:
if 'Content-Length' in headers.keys():
self.content_len = int(headers['Content-Length'])
+ if 'X-Sequence' in headers.keys():
+ self.seq = int(headers['X-Sequence'])
self.trailer = True
# Add 4 because self.data.find("\r\n\r\n") does not count