Skip to content

Support form data for PUTs#105

Closed
AlejandroHuerta wants to merge 1 commit intoadafruit:mainfrom
AlejandroHuerta:main
Closed

Support form data for PUTs#105
AlejandroHuerta wants to merge 1 commit intoadafruit:mainfrom
AlejandroHuerta:main

Conversation

@AlejandroHuerta
Copy link
Copy Markdown

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
Copy Markdown
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