Skip to content

Commit e420a6f

Browse files
weltekialexellis
authored andcommitted
Fix undefined variable in python3-http-debian template
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>
1 parent 1464705 commit e420a6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/python3-http-debian/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def format_response(res):
5858
if res == None:
5959
return ('', 200)
6060

61-
if type(resp) is dict:
61+
if type(res) is dict:
6262
statusCode = format_status_code(res)
6363
content_type = get_content_type(res)
6464
body = format_body(res, content_type)

0 commit comments

Comments
 (0)