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.
Reviewed-by: Jay Satiro
Closes #6610
}
else
config->autoreferer = FALSE;
- GetStr(&config->referer, nextarg);
+ ptr = *nextarg ? nextarg : NULL;
+ GetStr(&config->referer, ptr);
}
break;
case 'E':