#ifdef HAVE_OPENSSL
if (is_https) {
- client_write_ssl(ptr, StrLength(WCC->HBuf));
+ client_write_ssl(WCC->HBuf);
+ client_write_ssl(WCC->WBuf);
return (count);
}
#endif
#endif
fdflags = fcntl(WC->http_sock, F_GETFL);
- while (ptr < eptr) {
+ while (ptr < eptr) {
if ((fdflags & O_NONBLOCK) == O_NONBLOCK) {
FD_ZERO(&wset);
FD_SET(WCC->http_sock, &wset);
count = StrLength(WCC->WBuf);
eptr = ptr + count;
-#ifdef HAVE_OPENSSL
- if (is_https) {
- client_write_ssl(ptr, StrLength(WCC->HBuf));
- return (count);
- }
-#endif
-
#ifdef HTTP_TRACING
write(2, "\033[34m", 5);