From 7472ede32ae5a1c80928e03ef8fd836630eb6ac8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 20 Jan 2005 22:22:12 +0000 Subject: Philippe Hameau found out that -Q "+[command]" didn't work, although some code was written for it. I fixed and added test case 227 to verify it. The curl.1 man page didn't mention the '+' so I added it. --- src/main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index ad3a5f4cd..bcf2cd2b4 100644 --- a/src/main.c +++ b/src/main.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2004, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2005, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -2784,8 +2784,9 @@ static void free_config_fields(struct Configurable *config) free(config->cookiejar); curl_slist_free_all(config->quote); /* checks for config->quote == NULL */ - curl_slist_free_all(config->postquote); /* */ - curl_slist_free_all(config->headers); /* */ + curl_slist_free_all(config->prequote); + curl_slist_free_all(config->postquote); + curl_slist_free_all(config->headers); } #if defined(WIN32) && !defined(__CYGWIN32__) @@ -3490,6 +3491,7 @@ operate(struct Configurable *config, int argc, char *argv[]) curl_easy_setopt(curl, CURLOPT_CRLF, config->crlf); curl_easy_setopt(curl, CURLOPT_QUOTE, config->quote); curl_easy_setopt(curl, CURLOPT_POSTQUOTE, config->postquote); + curl_easy_setopt(curl, CURLOPT_PREQUOTE, config->prequote); curl_easy_setopt(curl, CURLOPT_WRITEHEADER, config->headerfile?&heads:NULL); curl_easy_setopt(curl, CURLOPT_COOKIEFILE, config->cookiefile); -- cgit v1.2.3