Skip to content

Commit

Permalink
Update endpoint for new version of marshmallow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobiasz Kędzierski committed Jul 13, 2020
1 parent 3874a45 commit e7ff213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/api_connexion/endpoints/dag_source_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ def get_dag_source(file_token: str):
return Response(dag_source, headers={'Content-Type': return_type})
if return_type == 'application/json':
content = dag_source_schema.dumps(dict(content=dag_source))
return Response(content.data, headers={'Content-Type': return_type})
return Response(content, headers={'Content-Type': return_type})
return Response("Not Allowed Accept Header", status=406)

0 comments on commit e7ff213

Please sign in to comment.