From 383641d70a01da00f2a2484e8e8c3f6f20d24adb Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 9 May 2012 00:20:17 +0900 Subject: Support media-type parameter in Content-Type --- src/tool_metalink.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tool_metalink.h') diff --git a/src/tool_metalink.h b/src/tool_metalink.h index 39e6674d1..f7a0abe84 100644 --- a/src/tool_metalink.h +++ b/src/tool_metalink.h @@ -50,4 +50,10 @@ void clean_metalink(struct Configurable *config); int parse_metalink(struct Configurable *config, const char *infile); +/* + * Returns nonzero if content_type includes "application/metalink+xml" + * media-type. The check is done in case-insensitive manner. + */ +int check_metalink_content_type(const char *content_type); + #endif /* HEADER_CURL_TOOL_METALINK_H */ -- cgit v1.2.3