mirror of
https://github.com/lxsang/ant-http
synced 2025-04-23 10:46:44 +02:00
Ingore cookie header in header dictionary as it is handled specially
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
This commit is contained in:
parent
eed2e9c1af
commit
af737d619d
@ -1148,9 +1148,18 @@ void *decode_request_header(void *data)
|
||||
trim(line, ' ');
|
||||
if (token && line && strlen(line) > 0)
|
||||
{
|
||||
if(strcasecmp(token, "Cookie") != 0)
|
||||
{
|
||||
/**
|
||||
* @brief Ignore Cookie header in the header dict
|
||||
* as Cookie is handled in a dedicated dictionary
|
||||
*
|
||||
*/
|
||||
verify_header(token);
|
||||
dput(xheader, token, strdup(line));
|
||||
}
|
||||
|
||||
}
|
||||
if (token != NULL && strcasecmp(token, "Cookie") == 0)
|
||||
{
|
||||
if (!cookie)
|
||||
|
Loading…
x
Reference in New Issue
Block a user