summaryrefslogtreecommitdiff
path: root/src/libwaitress
diff options
context:
space:
mode:
Diffstat (limited to 'src/libwaitress')
-rw-r--r--src/libwaitress/waitress.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libwaitress/waitress.c b/src/libwaitress/waitress.c
index a43c81e..d3487c8 100644
--- a/src/libwaitress/waitress.c
+++ b/src/libwaitress/waitress.c
@@ -822,15 +822,15 @@ static WaitressReturn_t WaitressConnect (WaitressHandle_t *waith) {
snprintf (buf, sizeof (buf), "CONNECT %s:%s HTTP/"
WAITRESS_HTTP_VERSION "\r\n",
waith->url.host, WaitressDefaultPort (&waith->url));
- waith->request.write (waith, buf, strlen (buf));
+ WRITE_RET (buf, strlen (buf));
/* write authorization headers */
if (WaitressFormatAuthorization (waith, &waith->proxy, "Proxy-",
buf, WAITRESS_BUFFER_SIZE)) {
- waith->request.write (waith, buf, strlen (buf));
+ WRITE_RET (buf, strlen (buf));
}
- waith->request.write (waith, "\r\n", 2);
+ WRITE_RET ("\r\n", 2);
if ((wRet = WaitressReceiveHeaders (waith, &size)) !=
WAITRESS_RET_OK) {