#2032·laf

[bug] Unable to receive plain text data in the request body

Author: 0stupid0Created Oct 17, 2024Updated Oct 17, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Environment

https://laf.run

What happened

When the data in the POST request body is plain text and 'Content-Type' is set to 'text/plain; charset=utf-8', no data can be retrieved from the query, headers, or body of the cloud function. 屏幕截图 2024-10-17 114144 屏幕截图 2024-10-17 114410 屏幕截图 2024-10-17 114442 屏幕截图 2024-10-17 114505

How to reproduce

1、Use Postman to send a request to the cloud function, set 'Content-Type' to 'text/plain; charset=utf-8', enter plain text data in the request body, and finally send the request. 2、Check if the plain text data exists in the context of the cloud function.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!