Comments (3)
Yeah, I thought about that when it was implemented, but it hasn't come up
as a problem until now. I'll see if I can get some time to look at it.
On Thursday, 21 July 2016, Luis Hdez [email protected] wrote:
Not 100% sure but apparently there is no way to use spaces in default
values.If I use default=Foo\ Bar it shows the Foo\ Bar
If I use default="Foo Bar" it shows the "Foo and cuts the value and
breaks the requestThanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#31, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AAehYUbCIl4Zk_2wCEvpNiYfUcHL28_Tks5qX9x5gaJpZM4JSNNY
.
Sent from Gmail Mobile
from ngx_http_geoip2_module.
Sorry for taking so long on this issue. I have found out that nginx allowed this behaviour by default and no change is required to the module.
You can use "default=Foo Bar"
Testing with the following:
log_format testing '"$geoip2_country_name" $geoip2_country_name';
geoip2 GeoLite2-Country.mmdb {
$geoip2_country_name "default=Foo Bar";
}
server {
access_log access.log testing;
listen 80;
location / {
return 200;
}
}
Produces the following in the access log:
"Foo Bar" Foo Bar
from ngx_http_geoip2_module.
Great! Thanks for letting me now
from ngx_http_geoip2_module.
Related Issues (20)
- Query on fetching the subdivisions names en with default value if subdivisions are missing HOT 1
- autonomous_system_organization HOT 1
- high cpu usage on heavy traffic HOT 2
- Does not compile with nginx release 1.23.0 HOT 2
- Build fails with nginx 1.23.0 HOT 1
- "geoip2" directive is not allowed here
- Nginx Docker build with GeoIP2 suddenly fails. HOT 1
- Feature request: support datasets generated with mmdbctl
- Support for nginx 1.24.0 HOT 3
- It is no possible to use space which is not between words HOT 2
- timezone variable HOT 1
- build with geoip no standard prefix HOT 2
- country names don't match iso code with cloutflare frontend HOT 15
- How do I use curl to set up IP for different countries to test geoip2? HOT 1
- Thanks HOT 1
- arm64 compatibility HOT 1
- Add uriencode featureflag to encode values set?
- Error with NGINX 1.24 HOT 3
- Is it possible to lookup to different keys same time HOT 2
- stream block: geoip2 directive is not allowed here HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx_http_geoip2_module.