http: do not add a referrer header with empty value #6610
Yes, it will block passing an empty referrer header. On the receiving end a non-existing header should be equivalent to one that has an empty value. Unless I'm missing something.
This change will also make
Previously an empty 'Referer:' header was added to the HTTP request when passing `--referer ';auto'` or `--referer ''` on the command-line. This patch makes `--referer` work like `--header 'Referer:'` and will only add the header if it has a non-zero length value. Closes #xxxx