Skip to content

Commit

Permalink
Fix incorrect placement of header=present in versions endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Jul 20, 2020
1 parent d8443d6 commit 4e88be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimade/server/routers/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class CsvResponse(Response):
media_type = "text/csv"
media_type = "text/csv; header=present"


@router.get(
Expand All @@ -17,4 +17,4 @@ def get_versions(request: Request):
"""Respond with the text/csv representation for the served versions."""
version = BASE_URL_PREFIXES["major"].replace("/v", "")
response = f"version\n{version}"
return CsvResponse(content=response, headers={"header": "present"})
return CsvResponse(content=response)

0 comments on commit 4e88be3

Please sign in to comment.