[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Haunt serves some resources mistakenly as text/plain
From: |
Thompson, David |
Subject: |
Re: Haunt serves some resources mistakenly as text/plain |
Date: |
Thu, 21 Dec 2017 08:53:41 -0500 |
Hey Ludo and sirgazil,
On Thu, Dec 21, 2017 at 8:25 AM, Ludovic Courtès <address@hidden> wrote:
> Hi there!
>
> sirgazil <address@hidden> skribis:
>
>> When you create resources in Haunt whose URL paths contain dots beside
>> the dot before a file extension, it seems Haunt's web server will
>> always serve them as "text/plain". So, in the case of HTML pages, for
>> example, when you visit them in the Web browser, the browser won't
>> render the HTML, but display the HTML markup instead (within a PRE
>> element in a browser-generated HTML page).
>
> I noticed that too.
>
> The first patch attached fixes it (previously (file-extension
> "hello.es.html") would return "es.html", which has no associated MIME
> type). The second one is nice to have.
>
> Dave, could you consider applying them? :-)
Thanks for finding and fixing this bug! Both patches applied!
- Dave