These are chat archives for SmingHub/Sming
thanks to trigger the problem!! meanwhile just one remark:
As I understand this "if" purpose is for distinguish POST requests with FormUrlEncoded payload with other content-type, so in one case we process post data in other - just store raw request body.. May be I misunderstood your fix, but dosen't you just skip Formurlencoded content type chek?? instead you chek for method POST... how we decide do we need process post data as formurlencoded or just get it raw??
HttpRequest::parsePostData I check if the content-type is form encoded or not - if encoded parse it, otherwise save it - see HttpRequest.cpp Line185 onward...
I think the check can be nicer there - just needed a fix last night since it was driving me crazy while working on a angular application that posts data to my esp
I`d also would include a check if we received more data than content-length has specified. (in order to avoid buffer overflow in the end).
Any other suggestions/remarks?