mirror of
https://github.com/curl/curl.git
synced 2026-05-18 09:06:20 +03:00
curl_easy_header: Add CURLH_PSEUDO to sanity check
Fixes #9235 Closes #9236
This commit is contained in:
parent
ce8031d369
commit
4641575fcd
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue