jczic / MicroWebSrv

A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
https://github.com/jczic/MicroWebSrv
MIT License
640 stars 115 forks source link

Fixed issue for Pycom devices where decode("UTF-8") is unavailable #35

Closed binloan closed 6 years ago

binloan commented 6 years ago

The decode command in the _unquote_decode function is not working on WiPy/LoPy devices. Those devices will directly close the socket without any error (however no response will be send). I updated the function to use the str method instead.

jczic commented 6 years ago

Exactly !

jczic commented 4 years ago

Hello,

I released a fully new version (v2.0) of my web server here : github.com/jczic/MicroWebSrv2. Open source MIT, fully asynchronous, more robust, more fast and more efficient! It is delivered with a good documentation.

Thank you for your support and feedback. ☺️

Jean-Christophe Bos

Le mer. 20 juin 2018 à 10:41, Jonathan notifications@github.com a écrit :

The decode command in the _unquote_decode function is not working on WiPy/LoPy devices. Those devices will directly close the socket without any error (however no response will be send). I updated the function to use the str method instead.

You can view, comment on, or merge this pull request online at:

https://github.com/jczic/MicroWebSrv/pull/35 Commit Summary

  • fixed issue on wipy where decode(utf-8) is unavailable

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/pull/35, or mute the thread https://github.com/notifications/unsubscribe-auth/AAegLE9NQyQzNSL7m54Qo25m7JvUtgK7ks5t-gq9gaJpZM4Uu2FG .

--

Sincèrement,