mirror of
https://github.com/curl/curl.git
synced 2026-07-31 07:08:05 +03:00
Simon Liu's HTTP200ALIASES-patch!
This commit is contained in:
parent
7f0f10e498
commit
ec24efda74
4 changed files with 48 additions and 2 deletions
|
|
@ -1095,6 +1095,13 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
|
|||
data->set.private = va_arg(param, char *);
|
||||
break;
|
||||
|
||||
case CURLOPT_HTTP200ALIASES:
|
||||
/*
|
||||
* Set a list of aliases for HTTP 200 in response header
|
||||
*/
|
||||
data->set.http200aliases = va_arg(param, struct curl_slist *);
|
||||
break;
|
||||
|
||||
default:
|
||||
/* unknown tag and its companion, just ignore: */
|
||||
return CURLE_FAILED_INIT; /* correct this */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue