Skip to content

Commit 14a1c71

Browse files
Merge branch 'master' into is6791/fix-projects-inactivity-interval-env-var
2 parents 662d50a + 5fcb5cf commit 14a1c71

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

services/storage/src/simcore_service_storage/handlers_simcore_s3.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
parse_request_query_parameters_as,
1919
)
2020
from servicelib.logging_utils import log_context
21-
from servicelib.mimetype_constants import MIMETYPE_APPLICATION_JSON
2221
from settings_library.s3 import S3Settings
2322

2423
from . import sts
@@ -79,8 +78,10 @@ async def _copy_folders_from_project(
7978
task_progress=task_progress,
8079
)
8180

82-
raise web.HTTPCreated(
83-
text=json_dumps(body.destination), content_type=MIMETYPE_APPLICATION_JSON
81+
return web.json_response(
82+
{"data": jsonable_encoder(body.destination)},
83+
status=status.HTTP_201_CREATED,
84+
dumps=json_dumps,
8485
)
8586

8687

0 commit comments

Comments
 (0)