summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-response.c
diff options
context:
space:
mode:
Diffstat (limited to 'nanohttp/nanohttp-response.c')
-rwxr-xr-xnanohttp/nanohttp-response.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/nanohttp/nanohttp-response.c b/nanohttp/nanohttp-response.c
index 3883950..5432898 100755
--- a/nanohttp/nanohttp-response.c
+++ b/nanohttp/nanohttp-response.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-response.c,v 1.3 2004/10/29 09:27:05 snowdrop Exp $
+* $Id: nanohttp-response.c,v 1.4 2004/11/02 23:09:27 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -121,11 +121,11 @@ _hresponse_parse_header(const char *buffer)
return res;
}
-
+
herror_t
hresponse_new_from_socket(hsocket_t sock, hresponse_t **out)
{
- int i=0, readed;
+ int i=0, readed;
herror_t status;
hresponse_t *res;
attachments_t *mimeMessage;
@@ -158,7 +158,7 @@ read_header: /* for errorcode: 100 (continue) */
if (res == NULL)
{
log_error1("Header parse error");
- return herror_new("hresponse_new_from_socket",
+ return herror_new("hresponse_new_from_socket",
GENERAL_HEADER_PARSE_ERROR, "Can not parse response header");
}
@@ -186,14 +186,14 @@ read_header: /* for errorcode: 100 (continue) */
}
else
{
- res->attachments = mimeMessage;
+ res->attachments = mimeMessage;
http_input_stream_free(res->in);
- res->in = http_input_stream_new_from_file(mimeMessage->root_part->filename);
- if (!res->in) {
- /* TODO (#1#): Handle error */
-
- } else {
- /*res->in->deleteOnExit = 1;*/
+ res->in = http_input_stream_new_from_file(mimeMessage->root_part->filename);
+ if (!res->in) {
+ /* TODO (#1#): Handle error */
+
+ } else {
+ /*res->in->deleteOnExit = 1;*/
}
}
}
@@ -202,9 +202,9 @@ read_header: /* for errorcode: 100 (continue) */
}
-
-void
-hresponse_free(hresponse_t * res)
+
+void
+hresponse_free(hresponse_t * res)
{
if (res == NULL)
return;
@@ -217,8 +217,8 @@ hresponse_free(hresponse_t * res)
if (res->content_type)
content_type_free(res->content_type);
-
- if (res->attachments)
+
+ if (res->attachments)
attachments_free(res->attachments);
free(res);
}