diff options
author | m0gg | 2006-12-01 10:55:59 +0000 |
---|---|---|
committer | m0gg | 2006-12-01 10:55:59 +0000 |
commit | 1e0e97fe7b654ecd7f5315d129df6e57f3e63371 (patch) | |
tree | dce178f3f876c04f4e5b1385f388c81fc1b6994c /nanohttp/nanohttp-request.c | |
parent | 77ce98ff186515cce217814886d9d5b899380c7b (diff) | |
download | csoap-1e0e97fe7b654ecd7f5315d129df6e57f3e63371.tar.gz csoap-1e0e97fe7b654ecd7f5315d129df6e57f3e63371.tar.bz2 |
Fix nanoHTTP HTTPS client (still needs port in URL)
Diffstat (limited to 'nanohttp/nanohttp-request.c')
-rwxr-xr-x | nanohttp/nanohttp-request.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |