summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-04-04 18:53:20 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-04-04 18:53:20 +0000
commitc9d742a76fa0b63760d22cae690887b2af51ca80 (patch)
tree6f13559293428e468f1f570df1f38e8f828f9626
parent13c51d30ff1818d6b0776222e6b0d275b6ceab25 (diff)
downloadmorph-cache-server-c9d742a76fa0b63760d22cae690887b2af51ca80.tar.gz
read directly from body
-rwxr-xr-xmorph-cache-server6
1 files changed, 3 insertions, 3 deletions
diff --git a/morph-cache-server b/morph-cache-server
index 2891e19..25ae139 100755
--- a/morph-cache-server
+++ b/morph-cache-server
@@ -307,8 +307,8 @@ class MorphCacheServer(cliapp.Application):
@app.post('/artifacts')
def post_artifacts():
#artifacts = request.forms.get('artifacts').split(',')
- artifacts = requests.body.read()
- print artifacts
+ artifacts = request.body.read()
+ logging.debug(artifacts)
#results = {}
@@ -324,7 +324,7 @@ class MorphCacheServer(cliapp.Application):
# logging.debug('%s is%s in the cache' %
# (artifact, '' if result[artifact] else "n't"))
- return results
+ #return results
root = Bottle()
root.mount(app, '/1.0')