summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2014-01-04 21:15:52 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2014-01-04 21:20:17 +0000
commitde42f8880e49bc32825d13a4ba0c7ed6e4295b81 (patch)
tree6ec01ddbbbd2901852ccd6b8728f296c12a4e4b8 /content
parent2a18cef82b84037b14f5e470c70ab70e433add5e (diff)
downloadnetsurf-de42f8880e49bc32825d13a4ba0c7ed6e4295b81.tar.gz
netsurf-de42f8880e49bc32825d13a4ba0c7ed6e4295b81.tar.bz2
Add a bunch of logging to try and help track down the issue with rawfile handling, sorry guys
Diffstat (limited to 'content')
-rw-r--r--content/fetch.c4
-rw-r--r--content/fetchers/curl.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/content/fetch.c b/content/fetch.c
index ffc907891..5b9aba1b0 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -665,8 +665,10 @@ void fetch_multipart_data_destroy(struct fetch_multipart_data *list)
next = list->next;
free(list->name);
free(list->value);
- if (list->file)
+ if (list->file) {
+ LOG(("Freeing rawfile: %s", list->rawfile));
free(list->rawfile);
+ }
free(list);
}
}
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index 7578ad4cb..1fada9d0a 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -1299,6 +1299,7 @@ fetch_curl_post_convert(const struct fetch_multipart_data *control)
code, control->name));
} else {
char *mimetype = fetch_mimetype(control->value);
+ LOG(("XYZZY: Using rawfile of %s", control->rawfile));
code = curl_formadd(&post, &last,
CURLFORM_COPYNAME, control->name,
CURLFORM_FILE, control->rawfile,