Skip to content
Snippets Groups Projects
Commit 1c86328a authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Merge branch 'bugfix/54-add-content-header-to-streaming-response' into 'development'

Resolve "Add content header to streaming response of workflow documentation"

Closes #54

See merge request !51
parents 13d0f5fa 307694c4
No related branches found
No related tags found
2 merge requests!69Delete dev branch,!51Resolve "Add content header to streaming response of workflow documentation"
Pipeline #37980 passed
......@@ -289,7 +289,11 @@ async def download_workflow_documentation(
if document is DocumentationEnum.PARAMETER_SCHEMA:
path = workflow_mode.schema_path
return StreamingResponse(repo.download_file_stream(path, client), headers={"Cache-Control": "max-age=86400"})
return StreamingResponse(
repo.download_file_stream(path, client),
headers={"Cache-Control": "max-age=86400"},
media_type="application/json" if document is DocumentationEnum.PARAMETER_SCHEMA else "text/plain",
)
@router.post(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment