mirror of
https://github.com/lxsang/ant-http
synced 2025-07-13 13:04:23 +02:00
add protocol selection to ssl, used for http2 support in the future
This commit is contained in:
@ -796,7 +796,9 @@ void antd_error(void* client, int status, const char* msg)
|
||||
}
|
||||
char ibuf[20];
|
||||
snprintf (ibuf, sizeof(ibuf), "%d",clen);
|
||||
#ifdef USE_ZLIB
|
||||
if(((antd_client_t*)client)->z_level == ANTD_CNONE || !compressable(ctype))
|
||||
#endif
|
||||
dput(rsh.header, "Content-Length", strdup(ibuf));
|
||||
antd_send_header(client, &rsh);
|
||||
if(res_str)
|
||||
|
Reference in New Issue
Block a user