mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +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
|
|
@ -1469,10 +1469,8 @@ struct UserDefined {
|
|||
*/
|
||||
uint8_t ftp_create_missing_dirs;
|
||||
#endif
|
||||
uint8_t use_ssl; /* if AUTH TLS is to be attempted etc, for FTP or
|
||||
IMAP or POP3 or others! (type: curl_usessl)*/
|
||||
char keep_post; /* keep POSTs as POSTs after a 30x request; each
|
||||
bit represents a request, from 301 to 303 */
|
||||
uint8_t use_ssl; /* if AUTH TLS is to be attempted etc, for FTP or IMAP or
|
||||
POP3 or others! (type: curl_usessl)*/
|
||||
uint8_t timecondition; /* kind of time comparison: curl_TimeCond */
|
||||
uint8_t method; /* what kind of HTTP request: Curl_HttpReq */
|
||||
uint8_t httpwant; /* when non-zero, a specific HTTP version requested
|
||||
|
|
@ -1587,6 +1585,9 @@ struct UserDefined {
|
|||
BIT(ws_raw_mode);
|
||||
BIT(ws_no_auto_pong);
|
||||
#endif
|
||||
BIT(post301); /* keep POSTs as POSTs after a 301 request */
|
||||
BIT(post302); /* keep POSTs as POSTs after a 302 request */
|
||||
BIT(post303); /* keep POSTs as POSTs after a 303 request */
|
||||
};
|
||||
|
||||
#ifndef CURL_DISABLE_MIME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue