title: Binary Media Type Support in Serverless Framework
body: <p>Can anyone help me with understanding how the binary media type support for serverless actually works?</p>
  <p>I am using the following in the provider section of my yaml file:</p>
  <pre><code>binaryMediaTypes:
        - '*/*'
  </code></pre>
  <p>For each defined function that returns a binary payload I have the following:</p>
  <pre><code>contentHandling: CONVERT_TO_BINARY
  </code></pre>
  <p>I think this is all that needs to be done but it doesnt seem to work, my csv file gets downloaded but the content is still base 64 encoded and in the settings for my API gateway the binary media types is empty. If however, I go to the API GW settings and add a &quot; Binary Media Types&quot; for “text/csv” manually and redeploy the API in the console when I then download my CSV it looks ok.</p>
  <p>I thought the serverless framework should be setting the values I define in the config file into the API GW &quot; Binary Media Types&quot; setting but it doesnt seem to do anything.</p>
  <p>When I was using a couple of plugins combined to do this everything worked ok but it is my understanding that this should just work without any plugins now.</p>
  <p>I have a similar issue with the api gateway x ray tracing option which doesnt work when added to the serverless file.</p>
  <p>Can anyone help me with this? Failing this not working I will resort to setting it in terraform instead.</p>