mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:43:32 +03:00
urldata: change 'keep_post' into three distinct bitfields
Closes #20262
This commit is contained in:
parent
31fbbb322e
commit
9e0b02c19c
3 changed files with 11 additions and 8 deletions
|
|
@ -963,7 +963,9 @@ static CURLcode setopt_long(struct Curl_easy *data, CURLoption option,
|
|||
/* no return error on too high numbers since the bitmask could be
|
||||
extended in a future */
|
||||
return CURLE_BAD_FUNCTION_ARGUMENT;
|
||||
s->keep_post = arg & CURL_REDIR_POST_ALL;
|
||||
s->post301 = !!(arg & CURL_REDIR_POST_301);
|
||||
s->post302 = !!(arg & CURL_REDIR_POST_302);
|
||||
s->post303 = !!(arg & CURL_REDIR_POST_303);
|
||||
break;
|
||||
|
||||
case CURLOPT_HEADEROPT:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue