summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra/mothra.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2021-06-12 14:32:16 +0000
committerOri Bernstein <ori@eigenstate.org>2021-06-12 14:32:16 +0000
commitaacf368c6d4ec9adb9fae28d3ca07d074fd459f5 (patch)
tree7926906342bd0a2a127a3b302494b3e643e5f5e6 /sys/src/cmd/mothra/mothra.h
parentaf95aa431d6e511355a6eb953ab7845f94c0e2d7 (diff)
mothra: read the content-type header over file(1) to determine type (thanks james palmer)
this fixes some pages being classified as xml by file(1), meaning they would be rendered as plain text rather than as html.
Diffstat (limited to 'sys/src/cmd/mothra/mothra.h')
-rw-r--r--sys/src/cmd/mothra/mothra.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/mothra/mothra.h b/sys/src/cmd/mothra/mothra.h
index 806ab614b..200650ab7 100644
--- a/sys/src/cmd/mothra/mothra.h
+++ b/sys/src/cmd/mothra/mothra.h
@@ -28,6 +28,7 @@ struct Url{
char *reltext;
char fullname[NNAME];
char tag[NNAME];
+ char contenttype[NNAME];
int map; /* is this an image map? */
};
struct Www{
@@ -97,6 +98,7 @@ int Ufmt(Fmt *f);
#pragma varargck type "U" char*
void message(char *, ...);
int filetype(int, char *, int);
+int mimetotype(char *);
int snooptype(int);
void mkfieldpanel(Rtext *);
void geturl(char *, int, int, int);