mirror of
https://github.com/curl/curl.git
synced 2026-07-10 03:27:18 +03:00
setopt: return OK earlier for the deprecated h2 dep options
No need to have them checked twice.
Follow-up to bfbff7852f
Closes #22250
This commit is contained in:
parent
2e2c45831c
commit
7bfdc6f44a
1 changed files with 3 additions and 10 deletions
13
lib/setopt.c
13
lib/setopt.c
|
|
@ -1513,14 +1513,6 @@ static CURLcode setopt_pointers(struct Curl_easy *data, CURLoption option,
|
|||
break;
|
||||
}
|
||||
|
||||
#ifdef USE_HTTP2
|
||||
case CURLOPT_STREAM_DEPENDS:
|
||||
case CURLOPT_STREAM_DEPENDS_E:
|
||||
/* not doing stream dependencies any longer, but accept options
|
||||
* for backward compatibility */
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
return CURLE_UNKNOWN_OPTION;
|
||||
}
|
||||
|
|
@ -2906,10 +2898,11 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
|
|||
case CURLOPT_MIMEPOST: /* curl_mime * */
|
||||
case CURLOPT_STDERR: /* FILE * */
|
||||
case CURLOPT_SHARE: /* CURLSH * */
|
||||
case CURLOPT_STREAM_DEPENDS: /* CURL * */
|
||||
case CURLOPT_STREAM_DEPENDS_E: /* CURL * */
|
||||
case CURLOPT_CURLU: /* CURLU * */
|
||||
return setopt_pointers(data, option, param);
|
||||
case CURLOPT_STREAM_DEPENDS: /* CURL * */
|
||||
case CURLOPT_STREAM_DEPENDS_E: /* CURL * */
|
||||
return CURLE_OK;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue