openfaas / python-flask-template

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

Added new method to index.py to fix an issue with chunked encoding an… #10

Closed ssullivan closed 5 years ago

ssullivan commented 5 years ago

Fixes ISSUE #5

Description

Add a new method that changes some WSGI environ parameters to handle requests with chunked encoding.

Motivation and Context

How Has This Been Tested?

I deployed the template as a function and invoked it using a browser based RESTClient to test sending requests with different kinds of content for their bodies. Before this change when I performed the same tests the request bodies in the handle method were always empty.

Types of changes

Checklist:

derek[bot] commented 5 years ago

Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide.

ssullivan commented 5 years ago

I believe this should be signed off now. I ran a git commit -amend -s to sign off but the bot didn’t re-run on the commit after pushing that change.

alexellis commented 5 years ago

Sign-off worked, thank you.