backported PSGI headers fix