From 1e0e97fe7b654ecd7f5315d129df6e57f3e63371 Mon Sep 17 00:00:00 2001 From: m0gg Date: Fri, 1 Dec 2006 10:55:59 +0000 Subject: Fix nanoHTTP HTTPS client (still needs port in URL) --- nanohttp/nanohttp-request.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nanohttp/nanohttp-request.c') diff --git a/nanohttp/nanohttp-request.c b/nanohttp/nanohttp-request.c index 4572e2c..f7bd307 100755 --- a/nanohttp/nanohttp-request.c +++ b/nanohttp/nanohttp-request.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-request.c,v 1.19 2006/11/25 15:06:58 m0gg Exp $ +* $Id: nanohttp-request.c,v 1.20 2006/12/01 10:56:00 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -282,9 +282,9 @@ hrequest_new_from_socket(struct hsocket_t *sock, struct hrequest_t ** out) /* Read header */ for(i=0; i < MAX_HEADER_SIZE; i++) { - if ((status = hsocket_read(sock, &(buffer[i]), 1, 1, &readed)) != H_OK) + if ((status = hsocket_recv(sock, &(buffer[i]), 1, 1, &readed)) != H_OK) { - log_error2("hsocket_read failed (%s)", herror_message(status)); + log_error2("hsocket_recv failed (%s)", herror_message(status)); return status; } -- cgit v1.1-32-gdbae