diff --git a/conda-store-server/conda_store_server/_internal/server/views/api.py b/conda-store-server/conda_store_server/_internal/server/views/api.py index 74720f9ab..bf554041e 100644 --- a/conda-store-server/conda_store_server/_internal/server/views/api.py +++ b/conda-store-server/conda_store_server/_internal/server/views/api.py @@ -1353,6 +1353,7 @@ async def api_get_build_archive( @router_api.get("/build/{build_id}/docker/", deprecated=True) +@deprecated(sunset_date="Mon, 16 Feb 2025 23:59:59 UTC") async def api_get_build_docker_image_url( build_id: int, request: Request, @@ -1360,7 +1361,6 @@ async def api_get_build_docker_image_url( server=Depends(dependencies.get_server), auth=Depends(dependencies.get_auth), ): - response_headers = {"Deprecation": "True"} with conda_store.get_db() as db: build = api.get_build(db, build_id) auth.authorize_request( @@ -1372,7 +1372,7 @@ async def api_get_build_docker_image_url( if build.has_docker_manifest: url = f"{server.registry_external_url}/{build.environment.namespace.name}/{build.environment.name}:{build.build_key}" - return PlainTextResponse(url, headers=response_headers) + return PlainTextResponse(url) else: content = { @@ -1380,7 +1380,7 @@ async def api_get_build_docker_image_url( "message": f"Build {build_id} doesn't have a docker manifest", } return JSONResponse( - status_code=400, content=content, headers=response_headers + status_code=400, content=content, )