diff options
Diffstat (limited to 'src/htslib.h')
-rw-r--r-- | src/htslib.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/htslib.h b/src/htslib.h index 504d436..19d7adc 100644 --- a/src/htslib.h +++ b/src/htslib.h @@ -554,8 +554,14 @@ HTS_STATIC int strcmpnocase(char* a,char* b) { #else #define OPT_MMS(a) (0) #endif -#define is_hypertext_mime__(a) \ + +#define is_html_mime_type(a) \ ( (strfield2((a),"text/html")!=0)\ + || (strfield2((a),"application/xhtml+xml")!=0) \ + ) +#define is_hypertext_mime__(a) \ + ( \ + is_html_mime_type(a)\ || (strfield2((a),"application/x-javascript")!=0) \ || (strfield2((a),"text/css")!=0) \ /*|| (strfield2((a),"text/vnd.wap.wml")!=0)*/ \ @@ -572,7 +578,6 @@ HTS_STATIC int strcmpnocase(char* a,char* b) { || OPT_MMS(a) \ ) - /* Library internal definictions */ #ifdef HTS_INTERNAL_BYTECODE |