Skip to content

Make UWSGI utf8 behaviour consistent with Apache and FastCGI (#2847,#2705)

Maxime Besson requested to merge fix-uwsgi-encoding-2847 into v2.0

This patch wraps the LLNG app with a middleware that ensures anything that leaves LLNG is a binary string, including header values, as per PSGI spec.

@maudoux: this will probably cause regressions for you, make sure you update macros to no longer use unicode2iso/iso2unicode, and review other UTF-8 related workaround you have done. There might also be some performance regressions

Since this is a breaking, but necessary change, I added a release note and a way for users to restore previous (but buggy) behavior

Merge request reports