Support media-type parameter in Content-Type

This commit is contained in:
Tatsuhiro Tsujikawa
2012-05-09 00:20:17 +09:00
committed by Daniel Stenberg
parent 963bcde476
commit 383641d70a
3 changed files with 31 additions and 2 deletions

View File

@@ -1582,8 +1582,7 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
Metalink file, parse it and add getout for them. */
char *content_type;
curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &content_type);
if(content_type &&
Curl_raw_equal("application/metalink+xml", content_type)) {
if(content_type && check_metalink_content_type(content_type)) {
if(!(config->mute)) {
fprintf(config->errors, "\nParsing Metalink file: %s\n",
outs.filename);