You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).