mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
curl_easy_header: Add CURLH_PSEUDO to sanity check
Fixes #9235 Closes #9236
This commit is contained in:
parent
ce8031d369
commit
4641575fcd
@ -74,8 +74,8 @@ CURLHcode curl_easy_header(CURL *easy,
|
||||
struct Curl_header_store *hs = NULL;
|
||||
struct Curl_header_store *pick = NULL;
|
||||
if(!name || !hout || !data ||
|
||||
(type > (CURLH_HEADER|CURLH_TRAILER|CURLH_CONNECT|CURLH_1XX)) ||
|
||||
!type || (request < -1))
|
||||
(type > (CURLH_HEADER|CURLH_TRAILER|CURLH_CONNECT|CURLH_1XX|
|
||||
CURLH_PSEUDO)) || !type || (request < -1))
|
||||
return CURLHE_BAD_ARGUMENT;
|
||||
if(!Curl_llist_count(&data->state.httphdrs))
|
||||
return CURLHE_NOHEADERS; /* no headers available */
|
||||
|
Loading…
Reference in New Issue
Block a user