Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion adafruit_httpserver/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def form_data(self) -> Union[FormData, None]:
request.form_data["foo"] # "bar"
request.form_data.get_list("baz") # ["qux"]
"""
if self._form_data is None and self.method == "POST":
if self._form_data is None and (self.method == "POST" or self.method == "PUT"):
self._form_data = FormData(self.body, self.headers, debug=self.server.debug)
return self._form_data

Expand Down
Loading