9front - general discussion about 9front
 help / color / mirror / Atom feed
From: "james palmer" <james@biobuf.link>
To: "9front mailing list" <9front@9front.org>
Subject: Re: [9front] file(1) another partial revert of 8419
Date: Tue, 04 May 2021 18:21:55 +0100	[thread overview]
Message-ID: <30dc3be4-96c4-4def-8e85-b61783f7cf67@www.fastmail.com> (raw)
In-Reply-To: <22BCC91412030C7C4A375D43D29A57BF@qak>

Quoth kvik@a-b.xyz:
> > Currently files like https://www.openbsd.org/anoncvs.html
> > are not rendered in mothra(1):
> 
> That page sets content-type, so why does mothra file(1) it?
> 
> I'd prefer to have file(1) try a bit harder to detect actual HTML
> rather than reverting to an equally dumb classification.

a quick grep through mothra's source shows it only uses file(1). the filetype function needs to know about the content-type header but at the moment it just gets the fd and a buffer to put the mime type in.

- james

      reply	other threads:[~2021-05-04 17:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-03 18:38 theinicke
2021-05-04 13:02 ` kvik
2021-05-04 17:21   ` james palmer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=30dc3be4-96c4-4def-8e85-b61783f7cf67@www.fastmail.com \
    --to=james@biobuf.link \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).