mirror of
https://github.com/lxsang/ant-http
synced 2025-07-13 13:04:23 +02:00
refactor code, let plugin handle application data in post request
This commit is contained in:
@ -296,6 +296,7 @@ void antd_send_header(void *cl, antd_response_header_t *res)
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG("Gzip enable on stream %d", client->sock);
|
||||
client->z_status = Z_NO_FLUSH;
|
||||
dput(res->header, "Content-Encoding", strdup("gzip"));
|
||||
}
|
||||
@ -310,6 +311,7 @@ void antd_send_header(void *cl, antd_response_header_t *res)
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG("deflate enable on stream %d", client->sock);
|
||||
client->z_status = Z_NO_FLUSH;
|
||||
dput(res->header, "Content-Encoding", strdup("deflate"));
|
||||
}
|
||||
|
Reference in New Issue
Block a user