]> git.lizzy.rs Git - plan9front.git/commit
mothra: read the content-type header over file(1) to determine type (thanks james...
authorOri Bernstein <ori@eigenstate.org>
Sat, 12 Jun 2021 14:32:16 +0000 (14:32 +0000)
committerOri Bernstein <ori@eigenstate.org>
Sat, 12 Jun 2021 14:32:16 +0000 (14:32 +0000)
commitaacf368c6d4ec9adb9fae28d3ca07d074fd459f5
tree7926906342bd0a2a127a3b302494b3e643e5f5e6
parentaf95aa431d6e511355a6eb953ab7845f94c0e2d7
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.
sys/src/cmd/mothra/mothra.c
sys/src/cmd/mothra/mothra.h
sys/src/cmd/mothra/snoop.c
sys/src/cmd/mothra/url.c