diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-01-20 22:22:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-01-20 22:22:12 +0000 |
commit | 7472ede32ae5a1c80928e03ef8fd836630eb6ac8 (patch) | |
tree | 2c853bd0fe25ed7c0df06ce2d3939602d0610e3b /src | |
parent | b5065e462bf258a456f7bfc3c3af1dbd942713d1 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
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, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, 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); |