Download Latest Version v2.4.0 source code.tar.gz (2.0 MB)
Email in envelope

Get an email when there's a new version of BlackSheep

Home / v2.4.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-06-22 1.3 kB
v2.4.0 source code.tar.gz 2025-06-22 2.0 MB
v2.4.0 source code.zip 2025-06-22 2.1 MB
Totals: 3 Items   4.1 MB 4
  • SOME BREAKING CHANGES. Modify the built-in sessions to support any kind of storage for the session information. It still defaults to storing sessions in cookies, but allows defining a custom SessionStore to store information where desired. Fix [#542]. Read the updated documentation on Sessions for more information.
  • Remove charset-normalizer dependency. This library was used only when a UnicodeDecodeError exception occurred when parsing the body of a web request. This can happen in two circumstances: when the client sends a payload specifying the wrong encoding in the Content-Type request header, or when the client sends a payload that is not UTF-8 encoded and without specifying the charset encoding. Fix [#581].
  • Now the framework always returns Bad Request with a useful error message in the response payload, in the circumstances described in the point above.
  • Correct bug in the parse_charset function that prevented proper parsing and optimal handling of input encodings different than UTF8. Parsing still worked in this case because of the automatic fallback to charset-normalizer.
  • Correct the output of request.charset when the charset is obtained from the 'Content-Type' request header.
Source: README.md, updated 2025-06-22