Skip to content

Version 0.12.5

Compare
Choose a tag to compare
@tarsil tarsil released this 04 Feb 14:47
· 8 commits to main since this release
c9e54c4

Added

  • Header is now an iterator which is an alias to encoded_multi_items.
    Instead of reparsing the headers for every middleware, keep the instance and mimic a fitting generator.- sniff method on Request.

Changed

  • receive, send are not properties anymore on Request but proper methods. receive has a replay mode for sniff.

Fixed

  • StaticFiles without scope headers failed.
  • StaticFiles were susceptible for path traversal attacks.
  • Calling Request.headers could empty the headers in scope when just a generator.
  • Messages were not replayed in case ContinueRouting was raised. This prevented sniffing like documented.