From f61b02f7fce9cbd00c9ccdec3a0a7a4da57077d2 Mon Sep 17 00:00:00 2001 From: heitorlessa Date: Tue, 6 Jul 2021 13:44:29 +0200 Subject: [PATCH] fix(api-gateway): incorrect plain text mimetype #506 --- aws_lambda_powertools/event_handler/content_types.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aws_lambda_powertools/event_handler/content_types.py b/aws_lambda_powertools/event_handler/content_types.py index 33b4acae7cb..00ec3db168e 100644 --- a/aws_lambda_powertools/event_handler/content_types.py +++ b/aws_lambda_powertools/event_handler/content_types.py @@ -1,2 +1,4 @@ +# use mimetypes library to be certain, e.g., mimetypes.types_map[".json"] + APPLICATION_JSON = "application/json" -PLAIN_TEXT = "plain/text" +PLAIN_TEXT = "text/plain"