Skip to content

Commit

Permalink
Fix undefined variable in python3-http-debian template
Browse files Browse the repository at this point in the history
Functions useing the http-debian tamplate where failing.

The format_response function used an undefined variable 'resp'
this should be 'res'.

Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
  • Loading branch information
welteki authored and alexellis committed Jan 11, 2024
1 parent 1464705 commit e420a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/python3-http-debian/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def format_response(res):
if res == None:
return ('', 200)

if type(resp) is dict:
if type(res) is dict:
statusCode = format_status_code(res)
content_type = get_content_type(res)
body = format_body(res, content_type)
Expand Down

0 comments on commit e420a6f

Please sign in to comment.