We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a95f3 commit 4fba5eaCopy full SHA for 4fba5ea
adafruit_httpserver/request.py
@@ -418,7 +418,7 @@ def form_data(self) -> Union[FormData, None]:
418
request.form_data["foo"] # "bar"
419
request.form_data.get_list("baz") # ["qux"]
420
"""
421
- if self._form_data is None and self.method == "POST":
+ if self._form_data is None and (self.method == "POST" or self.method == "PUT"):
422
self._form_data = FormData(self.body, self.headers, debug=self.server.debug)
423
return self._form_data
424
0 commit comments