Skip to content

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

Open
@0stupid0

Description

@0stupid0

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions