openSUSE / mirrorbrain

MirrorBrain
http://mirrorbrain.org/
Other
26 stars 17 forks source link

check MIME type (Content-Type) on mirrors #34

Open lrupp opened 4 years ago

lrupp commented 4 years ago

We (Sugar Labs) are serving a lot of files with custom MIME types. Mirrors with missing MIME type configuration for these files are causing quite a bit of trouble, especially since most users don't understand what's going on.

It would be great if MirrorBrain could check the Content-Type for all files via HTTP

  1. during the initial scan for enabling the mirror (mb scan -e) and
  2. on a periodical basis (but not as often as other checks).
ott commented 2 years ago

@lrupp rsync does not return a Content-Type header. This would only apply to mirrors that are scanned over HTTP or FTP. Is that correct?