leev / ngx_http_geoip2_module

Nginx GeoIP2 module
BSD 2-Clause "Simplified" License
983 stars 186 forks source link

It is no possible to use space which is not between words #117

Closed GeorgeHu6 closed 8 months ago

GeorgeHu6 commented 1 year ago

when I use $geoip2_country_iso_code "default= a" country iso_code;, the value will be a without the space.

GeorgeHu6 commented 1 year ago

For the same reason, it is impossible to set the default value to a single space.

leev commented 8 months ago

Is there really a use case for needing a default value of a single space, or a value starting with a space? I'm sure you could use other nginx functionality to prepend this if you needed it.