add protocol selection to ssl, used for http2 support in the future

This commit is contained in:
lxsang
2020-01-11 22:30:01 +01:00
parent 7b274de0db
commit 7fc12a72e6
3 changed files with 42 additions and 2 deletions

View File

@ -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)