How to I set the Content Type of a Google Cloud Function HTTP response
1 How do I set the Content-Type of a response from a HTTP Google Cloud Function in Python? Right now I have something like: def my_function(request): xml = ... return xml This correctly returns my XML, but the Content-Type is wrong (it's text/html instead). python google-cloud-platform google-cloud-functions share | improve this question asked Nov 13 '18 at 0:00 Dustin Ingram Dustin Ingram 3,800 1 12 26 add a comment | 1 How do I set the Content-Type of a response from a HTTP Google Cloud Function in Python? Right now I have something like: def my_function(request): xml = ... return xml This correctly returns my XML, but the Content-Type is wrong (it's text/html instead). python google-cloud-platform google-cloud-functions share | improve this question asked Nov 13 '18 at 0:00 Dustin Ingram Dustin Ingram 3,800 1 12 26 add a comment | 1 1