Skip to content

Commit d70162f

Browse files
committed
return
1 parent 1f18a84 commit d70162f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/storage/src/simcore_service_storage/handlers_simcore_s3.py

Lines changed: 2 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,8 @@ 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+
text=json_dumps(body.destination), status=status.HTTP_201_CREATED
8483
)
8584

8685

0 commit comments

Comments
 (0)