Closed mfontani closed 4 years ago
Note both commits might want to get squashed prior to merging if you wish to merge both; I'm happy to do so if wanted but am unsure about a nice, proper name for the newly introduced function. I'm happy to rename it to whatever you think would be best; rebase & squash as required.
The old "mod_geoip" used to set both environment and notes. This commit makes the setting of the notes optional.
This enables an Apache mod_perl running with:
... and with a MaxMind configuration of:
... to get the client's country code & continent code as an Apache "note", without having to involve the environment.
The reason one usually wants to disable SetupEnv (via "-SetupEnv") for mod_perl handlers is one of performance; from the docs at: https://perl.apache.org/docs/2.0/user/config/config.html#C_SetupEnv_c