Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 689 Bytes

File metadata and controls

19 lines (14 loc) · 689 Bytes

template/

python3-http-osm

See also openfaas/python-flask-template#39 and from https://github.com/openfaas/python-flask-template/blob/master/template/python3-http-debian/index.py

def format_body(res, content_type):
    if content_type == 'application/octet-stream':
        return res['body']
    # (...)

@TODO discuss with upstream to potentially add this