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,8 +1148,17 @@ void *decode_request_header(void *data)
|
|||||||
trim(line, ' ');
|
trim(line, ' ');
|
||||||
if (token && line && strlen(line) > 0)
|
if (token && line && strlen(line) > 0)
|
||||||
{
|
{
|
||||||
verify_header(token);
|
if(strcasecmp(token, "Cookie") != 0)
|
||||||
dput(xheader, token, strdup(line));
|
{
|
||||||
|
/**
|
||||||
|
* @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 (token != NULL && strcasecmp(token, "Cookie") == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user