openfaas / python-flask-template

HTTP and Flask-based OpenFaaS templates for Python 3
MIT License
85 stars 86 forks source link

Fix for exception thrown when RAW_BODY is undefined #38

Closed dsbibby closed 4 years ago

dsbibby commented 4 years ago

Signed-off-by: David Bibby davidsbibby@gmail.com

Description

Specifies a default value for the RAW_BODY environment variable

Motivation and Context

Fixes #37

How Has This Been Tested?

Before this change my function required the RAW_BODY environment variable to be defined otherwise an exception was thrown. After making this change the RAW_BODY environment variable no longer has to be defined and assumes the value "false" if it is not specified.

Types of changes

Checklist:

alexellis commented 4 years ago

Hi, thanks for the PR

Alex

alexellis commented 4 years ago

If you'd like to join us on Slack, please feel free to join to chat with the community. https://slack.openfaas.io/