From 7b763378b350096b4a097e5db2d92c7215aa8fc8 Mon Sep 17 00:00:00 2001 From: Phil Owen <19691521+PhillipsOwen@users.noreply.github.com> Date: Fri, 8 Mar 2024 12:00:09 -0500 Subject: [PATCH] changing mime type to csv --- src/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.py b/src/server.py index 132a0aa..7ab8b4e 100644 --- a/src/server.py +++ b/src/server.py @@ -453,7 +453,7 @@ def get_station_data(station_name: Union[str, None] = Query(default=None), time_ status_code = 500 # return to the caller - return PlainTextResponse(content=ret_val, status_code=status_code, media_type="text/plain") + return PlainTextResponse(content=ret_val, status_code=status_code, media_type="text/csv") @APP.get('/get_catalog_member_records', status_code=200, response_model=None)