adafruit / Adafruit_CircuitPython_HTTPServer

Simple HTTP Server for CircuitPython
MIT License
46 stars 30 forks source link

request.form_data.get(...) returns the string "None" if a field doesn't exist #69

Closed radair6000 closed 1 year ago

radair6000 commented 1 year ago

Hi,

The method request.form_data.get seems to return the string "None" if the requested field doesn't exist. Is should probably return the NoneType None?

michalpokusa commented 1 year ago

Hi, I added the fix in the #67 PR, if you can, please download this version of the lib and test again. Thanks!

radair6000 commented 1 year ago

Hi again, I finally managed to test this now (sorry for taking so long), and it seems to be working great, thanks!