From 938143e3b58c67248a95e0462b53e8ce4acf16c2 Mon Sep 17 00:00:00 2001 From: peusterm Date: Thu, 15 Sep 2016 15:39:36 +0200 Subject: [PATCH] Fix: Use 201 as HTTP return code when a package is uploaded. --- src/emuvim/api/sonata/dummygatekeeper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emuvim/api/sonata/dummygatekeeper.py b/src/emuvim/api/sonata/dummygatekeeper.py index 83737ee..8a9416c 100755 --- a/src/emuvim/api/sonata/dummygatekeeper.py +++ b/src/emuvim/api/sonata/dummygatekeeper.py @@ -556,7 +556,7 @@ class Packages(fr.Resource): s = Service(service_uuid, file_hash, upload_path) GK.register_service_package(service_uuid, s) # generate the JSON result - return {"service_uuid": service_uuid, "size": size, "sha1": file_hash, "error": None} + return {"service_uuid": service_uuid, "size": size, "sha1": file_hash, "error": None}, 201 except Exception as ex: LOG.exception("Service package upload failed:") return {"service_uuid": None, "size": 0, "sha1": None, "error": "upload failed"}, 500 -- 2.25.1