Cairo website is missing some headers, causing some browsers to choke

Joe Duarte <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAESemU-YRgaXM9nRMUHJtiky70v4VevhGrLXyAMN3-qk6Y=BBQ@mail.gmail.com>
Hi all,

There are some problems on the releases page:
https://www.cairographics.org/releases/

The first few listings are for change logs, e.g. ChangeLog.cairo-1.14.4.
However, these pages don't have Content Type headers. As a result, they
render as a jumbled mess in MS Edge and IE 11.

Those change logs are followed by a few ambiguously labeled links to
binaries, an example being LATEST-cairo-1.14.6.

Those links also lack Content Type headers, and since they also lack file
extensions, it's not clear what they are. However, since
LATEST-cairo-1.14.6 is the same size as cairo-1.14.6.tar.xz (listed further
down, both 34 MB), I assume that it is the tar.xz file. When you click on
the LATEST-cairo-1.14.6 file in Edge or IE 11, the browser will freeze and
ultimately render gobbledygook since it's a binary, not a web page.

Edge and IE 11 have no problems with cairo-1.14.6.tar.gz, presumably
because that link has a proper Content Type header: *application/x-xz*, so
it just downloads normally and they don't try to render it as a web page
(and maybe they don't even need the header given the file extension – I'm
not sure).

The fix is to set the Content Type headers for all these links/pages (the
change logs are pages, or should be – right now they're plain text files
with Unix line endings, not HTML files. It's possible that Edge and IE 11
will handle them properly if they're just given the text/plain Content
Type.)

Cheers,

JD

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.