Giter Club home page Giter Club logo

Comments (3)

leev avatar leev commented on August 31, 2024

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 request

Thanks


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.

leev avatar leev commented on August 31, 2024

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.

luishdez avatar luishdez commented on August 31, 2024

Great! Thanks for letting me now

from ngx_http_geoip2_module.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.