In the Amazon API Gateway I have created a simple API containing a single resource called demo and one POST method corresponding to it:

Now, I want my endpoint to accept POST request of any Content-Type, so not necessarily application/json, but also plain/text. I then want to take the body of the request and wrap it in a JSON object and send it to an Amazon Lambda function (Lambda functions can only accept JSON object as parameter).
For this purpose I have edited the Integration Request corresponding to my method to use a custom template mapping:

I have used the reference from the Amazon documentation which can be found here: http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html
My Lambda function looks like this:
exports.handler = function(event, context) {
context.succeed(event);
};
When testing, I get the expected output regardless of what I send:

However, when I deploy, the transformation just doesn't work anymore, it expects JSON
- Sending anything yelds this:

- Sending JSON yields this:

Is there any part of this process executed wrong? Am I missing something when deploying? To me, it looks like a very annoying Amazon bug, can anyone confirm that?
Content-Typeor replace it with'*'?