mirror of
https://github.com/curl/curl.git
synced 2026-07-31 22:58:03 +03:00
fixup error check
This commit is contained in:
parent
70140f41f3
commit
05a9370a32
1 changed files with 3 additions and 1 deletions
|
|
@ -949,11 +949,13 @@ static CURLcode credentials_and_headers_setopts(struct OperationConfig *config,
|
|||
my_setopt_bitmask(curl, CURLOPT_HTTPAUTH, config->authtype);
|
||||
|
||||
result = my_setopt_slist(curl, CURLOPT_HTTPHEADER, config->headers);
|
||||
if(result) {
|
||||
if(result == CURLE_BAD_FUNCTION_ARGUMENT) {
|
||||
errorf("Illegal CRL/LF in --header data");
|
||||
config->synthetic_error = TRUE;
|
||||
return result;
|
||||
}
|
||||
if(setopt_bad(result))
|
||||
return result;
|
||||
|
||||
if(proto_http || proto_rtsp) {
|
||||
MY_SETOPT_STR(curl, CURLOPT_REFERER, config->referer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue