Skip to content

3.0.0 - Improved Security For Static Files

Compare
Choose a tag to compare
@FoamyGuy FoamyGuy released this 24 Apr 14:33
· 218 commits to main since this release
c2e832a

This release adds additional restrictions around static files that the library will serve. There is a new required positional argument root_path when initializing the server. The server will not serve static files outside of that directory by default. So for instance if you set root_path to "/static" as the examples do then the server will not serve files located in the root directory.

Existing projects using this library will need to update the initialization within their code to include the new argument in order to run with the new version of this library.

Thank you @michalpokusa for these improvements.

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install adafruit-circuitpython-httpserver.

Read the docs for info on how to use it.