[Koha-bugs] [Bug 29744] Harmonize psgi/plack detection methods
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Sep 16 09:02:42 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29744
--- Comment #15 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Putting bug 31468 (from myself) in the picture here too:
When running API, we need to look for $ENV{PLACK_ENV}, but the
underscore is not included in the Context sub.
sub is_psgi_or_plack {
my $is_psgi_or_plack = 0;
- if ( any { /(^psgi\.|^plack\.)/i } keys %ENV ) {
+ if ( any { /^(psgi|plack)[._]/i } keys %ENV ) {
And note, with unit tests :)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list