Hi,
Tell me please, how can I remove all spaces from $args ?

I create solution, it remove up to 5 spaces. But it not best way i think.

            if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
            if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
            if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
            if ($args ~ (.*)\s(.*)$) { set $args $1$2; }
            if ($args ~ (.*)\s(.*)$) { set $args $1; }

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,266482,266482#msg-266482

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to