summaryrefslogtreecommitdiffstats
path: root/src/ogRest.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ogRest.py')
-rw-r--r--src/ogRest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ogRest.py b/src/ogRest.py
index febf529..781fb80 100644
--- a/src/ogRest.py
+++ b/src/ogRest.py
@@ -131,9 +131,9 @@ class ogThread():
jsonResp = jsonResponse()
f = open(path, "r")
- lines = f.readlines()
+ text = f.read()
f.close()
- jsonResp.addElement('hardware', lines[0])
+ jsonResp.addElement('hardware', text)
response = restResponse(ogResponses.OK, jsonResp)
client.send(response.get())