ticket VG-216
use only first detect value for custom headers or last if set configuration value custom_headers_last_value