From 659afe0cbbf738d2d51a6743b25600c31dd95d92 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Fri, 4 Jun 2004 08:55:07 +0000 Subject: added HTTP/1.1 100 Continue functionality --- nanohttp/nanohttp-client.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c index 411884c..4f62afc 100644 --- a/nanohttp/nanohttp-client.c +++ b/nanohttp/nanohttp-client.c @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-client.c,v 1.11 2004/05/14 09:30:42 snowdrop Exp $ + * $Id: nanohttp-client.c,v 1.12 2004/06/04 08:55:07 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -235,6 +235,10 @@ hresponse_t *httpc_receive_header(hsocket_t sock) res->bodysize = restsize; res->body = rest; + if (res->errcode == 100) { /* continue */ + hresponse_free(res); + res = httpc_receive_header(sock); + } return res; } -- cgit v1.1-32-gdbae