-
-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content-Type: text/plain Not supported #830
Comments
I want to use it as the third party api provider post back the response to our server which is in plain text .
|
How were you doing this in Masonite? what did the Masonite controller look like? i need to know the exact data type you were returning i think |
Also the request data because it looks from the stack trace its throwing an error trying to load the post data into the request class
|
The controller code is added up in the description. |
thank you ill try to replicate this again once more thank you for being patient with me |
Describe the bug
simple post request to the controller with content-type: text/plain error:
This is the curl format for that request:
Controller code:
`class TestController(Controller):
"""TestController Controller Class."""
web.py code:
Post("/api/text", "Api.TestController@textCheck")
Expected behaviour
I except to get the posted text data posted to the url.
Steps to reproduce the bug
No response
Screenshots
No response
OS
Linux
OS version
sonama 14.3
Browser
No response
Masonite Version
4.6.1
Anything else ?
No response
The text was updated successfully, but these errors were encountered: