Commit 1eb5cdc9 authored by Romain Courteaud's avatar Romain Courteaud

Return response object.

parent 1ccbc60a
......@@ -541,7 +541,9 @@ class SlapTool(BaseTool):
computer.Computer_reportComputerConsumption(
source_reference,
use_string)
return "OK"
self.REQUEST.response.setStatus(200)
self.REQUEST.response.setBody("OK")
return self.REQUEST.response
else:
self.REQUEST.response.setStatus(400)
self.REQUEST.response.setBody("")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment