diff options
author | snowdrop | 2004-11-01 15:16:22 +0000 |
---|---|---|
committer | snowdrop | 2004-11-01 15:16:22 +0000 |
commit | c28397f760d22a1e8be126725ff7784b2d8fec23 (patch) | |
tree | d1d09522031049fda25d5d98deb9a6aa6b7bcfc7 /nanohttp/nanohttp-mime.c | |
parent | 581c961c5b8e511a89addca064f372103d2400ee (diff) | |
download | csoap-c28397f760d22a1e8be126725ff7784b2d8fec23.tar.gz csoap-c28397f760d22a1e8be126725ff7784b2d8fec23.tar.bz2 |
added soap_ctx_add_file()
Diffstat (limited to 'nanohttp/nanohttp-mime.c')
-rwxr-xr-x | nanohttp/nanohttp-mime.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nanohttp/nanohttp-mime.c b/nanohttp/nanohttp-mime.c index 5b8a5f4..2089348 100755 --- a/nanohttp/nanohttp-mime.c +++ b/nanohttp/nanohttp-mime.c @@ -3,7 +3,7 @@ * | \/ | | | | \/ | | _/ * |_''_| |_| |_''_| |_'/ PARSER * -* $Id: nanohttp-mime.c,v 1.4 2004/10/29 09:27:05 snowdrop Exp $ +* $Id: nanohttp-mime.c,v 1.5 2004/11/01 15:16:26 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003-2004 Ferhat Ayaz @@ -664,7 +664,7 @@ static void _mime_received_bytes(void *data, const unsigned char* bytes, int size) { int i=0; - char *id, *type; + char *id, *type, *location; mime_callback_data_t *cbdata = (mime_callback_data_t*)data; if (!cbdata ) { @@ -737,6 +737,11 @@ void _mime_received_bytes(void *data, const unsigned char* bytes, int size) if (!strcmp(id, cbdata->root_id))
cbdata->message->root_part = cbdata->current_part;
}
+ location = hpairnode_get(cbdata->current_part->header, HEADER_CONTENT_LOCATION);
+ if (location != NULL)
+ {
+ strcpy(cbdata->current_part->location, location);
+ }
type = hpairnode_get(cbdata->current_part->header, HEADER_CONTENT_TYPE);
if (type != NULL)
{
|