How do I return JSON from a HTTP Google Cloud Function in Python? Right now I have something like:
import json
def my_function(request):
data = ...
return json.dumps(data)
This correctly returns JSON, but the Content-Type is wrong (it's text/html instead).