diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-10-03 20:40:43 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-10-03 20:40:43 +0200 |
commit | 85d6170c351e6fc3ec42e4f59fe465c4e09556ba (patch) | |
tree | 0de54985f2a33a7f9d7413b55c5135458903ad82 /sys/src/cmd/mothra/mothra.h | |
parent | 001ce57253f99e1a988a630ddf6bb05815bace80 (diff) |
mothra: ignore http content-type and encoding and just do content sniffing
Diffstat (limited to 'sys/src/cmd/mothra/mothra.h')
-rw-r--r-- | sys/src/cmd/mothra/mothra.h | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/sys/src/cmd/mothra/mothra.h b/sys/src/cmd/mothra/mothra.h index 27ad5e13b..b3be95d94 100644 --- a/sys/src/cmd/mothra/mothra.h +++ b/sys/src/cmd/mothra/mothra.h @@ -27,9 +27,7 @@ struct Url{ char basename[NNAME]; char reltext[NNAME]; char tag[NNAME]; - char charset[NNAME]; - int type; - int map; /* is this an image map? */ + int map; /* is this an image map? */ }; struct Www{ Url *url; @@ -43,29 +41,15 @@ struct Www{ int alldone; /* page will not change further -- used to adjust cursor */ }; -/* - * url reference types -- COMPRESS and GUNZIP are flags that can modify any other type - * Changing these in a non-downward compatible way spoils cache entries - */ enum{ - GIF=1, + PLAIN, HTML, + GIF, JPEG, - PIC, - TIFF, - AUDIO, - PLAIN, - XBM, - POSTSCRIPT, - FORWARD, - PDF, - SUFFIX, - ZIP, PNG, - - COMPRESS=16, - GUNZIP=32, - COMPRESSION=16+32, + BMP, + GUNZIP, + PAGE, }; /* @@ -102,9 +86,7 @@ void *emalloc(int); void *emallocz(int, int); void setbitmap(Rtext *); void message(char *, ...); -int suffix2type(char *); -int content2type(char *, char *); -int encoding2type(char *); +int snooptype(int fd); void mkfieldpanel(Rtext *); void geturl(char *, int, char *, int, int); char version[]; |