diff options
| -rw-r--r-- | sys/src/cmd/mothra/mothra.c | 2 | ||||
| -rw-r--r-- | sys/src/cmd/mothra/snoop.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index d71ba4f66..971273bfe 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -1103,7 +1103,7 @@ void hit3(int button, int item){ message("can't open %s", name); return; } - fprint(fd, "<head><title>Hit List</title></head>\n"); + fprint(fd, "<html><head><title>Hit List</title></head>\n"); fprint(fd, "<body><h1>Hit list</h1>\n"); } seek(fd, 0, 2); diff --git a/sys/src/cmd/mothra/snoop.c b/sys/src/cmd/mothra/snoop.c index 3ab8075f7..da72234d9 100644 --- a/sys/src/cmd/mothra/snoop.c +++ b/sys/src/cmd/mothra/snoop.c @@ -18,7 +18,8 @@ snooptype(int fd) buf[n] = 0; if(cistrstr(buf, "<?xml") || cistrstr(buf, "<!DOCTYPE") || - cistrstr(buf, "<HTML")) + cistrstr(buf, "<HTML") || + cistrstr(buf, "<head")) typ = HTML; else if(memcmp(buf, "\x1F\x8B", 2) == 0) typ = GUNZIP; |
