Skip to content

v0.6.0

Compare
Choose a tag to compare
@michael-lazar michael-lazar released this 31 Jul 01:26
· 44 commits to master since this release

Bugfixes

  • The default mimetype for unknown file extensions will now be sent as
    "application/octet-stream" instead of "text/plain". The expectation is that
    it would be safer for a client to download an unknown file rather than
    attempting to display it inline as text.
  • Fixed a bug that prevented loading the default mimetype definitions from
    /etc/mime.types and other system-level files.

Features

  • The static file server now has a --rate-limit flag that can be used
    to define per-IP address rate limiting for requests. Requests that exceed
    the specified rate will receive a 44 SLOW DOWN error response.
  • Server access logs are now directed to stdout instead of stderr.
    Error traceback and other messages will still be directed to stderr.
  • File chunking size has been optimized for streaming large static files.

Examples

  • Added an example that demonstrates how to use the new RateLimiter class
    (examples/rate_limit.py).