I noticed that the HTMLForm class has been coded to process only GET and POST requests.
I naively enabled it by adding the following lines to the methods in HTMLForm.cpp:
void HTMLForm::load(const HTTPRequest& request, std::istream& requestBody, PartHandler& handler)
void HTMLForm::prepareSubmit(HTTPRequest& request)
CHANGED:
if (request.getMethod() == HTTPRequest::HTTP_POST)
{
....
}
TO:
if (request.getMethod() == HTTPRequest::HTTP_POST || request.getMethod() == HTTPRequest::HTTP_PUT )
{
....
}
is this going to break something??





