Re: Regex in proxy_hide_header

2018-05-02 Thread bmrf
Oleg A. Mamontov Wrote: --- > On Wed, May 02, 2018 at 09:34:04AM +, bmrf wrote: > >Hi list, > > > >I was trying to unset/delete a header using proxy_hide_header. The > problem > >is that the header name is always unknown, but it has always

Re: Knowing the server port inside Perl code

2018-05-02 Thread Maxim Dounin
Hello! On Tue, May 01, 2018 at 08:47:15AM +0200, Ondrej Jombik wrote: > When using mail module for SMTP and doing auth using Perl code, it might > be handy to know entry port number. For example 25/TCP, 465/TCP or > 587/TCP; those are the most used ones. > > I thought this would be somewhere

Re: Regex in proxy_hide_header

2018-05-02 Thread Oleg A. Mamontov
On Wed, May 02, 2018 at 09:34:04AM +, bmrf wrote: Hi list, I was trying to unset/delete a header using proxy_hide_header. The problem is that the header name is always unknown, but it has always the same pattern, it starts with several whitespaces followed by random characters, something

Regex in proxy_hide_header

2018-05-02 Thread bmrf
Hi list, I was trying to unset/delete a header using proxy_hide_header. The problem is that the header name is always unknown, but it has always the same pattern, it starts with several whitespaces followed by random characters, something like \s+\w+ If regex is not supported at