We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f7aee4 commit f51c878Copy full SHA for f51c878
mip_api/__init__.py
@@ -105,7 +105,7 @@ def lambda_handler(event, context):
105
106
# combine them into CSV output
107
balances_csv = balances.format_csv(raw_bal, gl_chart)
108
- return util.build_return_text(200, balances_csv)
+ return util.build_return_csv(200, balances_csv)
109
110
# common processing for '/accounts' and '/tags'
111
mip_api/util.py
@@ -15,11 +15,11 @@ def build_return_json(code, body):
15
}
16
17
18
-def build_return_text(code, body):
+def build_return_csv(code, body):
19
return {
20
"statusCode": code,
21
"body": body,
22
- "headers": {"Content-Type": "test/csv"},
+ "headers": {"Content-Type": "text/csv"},
23
24
25
0 commit comments