Skip to content

Conversation

AlejandroHuerta
Copy link

Building a project that interacts with an API (Alpaca ASCOM) that performs PUTs to devices. Need to support form data when PUTs are performed.

@michalpokusa
Copy link
Contributor

This is intentional behaviour.

The form data should be accessible only on POST requests, as the HTML <form> tag only supports GET and POST, there is no plain way to make a PUT request with form without using JS.

When accessing the body of request is needed on e.g. PUT or PATCH requests, you could use request.json() or request.body and parse it accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants