httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kent Frazier <>
Subject Re: [users@httpd] Malformed header "Content-Type: text/plain\t" with .el file
Date Tue, 11 Apr 2017 19:29:06 GMT
On 4/11/2017 12:15 PM, Hanno Böck wrote:
> Hi,
> I am observing a behavior and don't really know how to make sense of
> it. It may very well be that I hit a bug, but I wanted to ask for
> feedback to confirm it.
> When I download .el files (EMACS Lisp scripts) on an apache server I
> get a very strange header back:
> "Content-Type: text/plain\t"
> Please note the "\t" at the end, which shouldn't be here.
> I can reproduce this on different Gentoo systems, but not on Debian or
> Ubuntu.
> To reproduce:
> * Put a .el script in the webroot, e.g. get one from here:
> * Download it with "wget -S [url]" (-S makes wget show all the
>    HTTP headers).
> For testing I have put an example on my server:
> (the header contains an additional charset=UTF-8, because that's
> configured as default on that server, but it still shows the strange
> "\t")
> The "magic" file shipped with httpd contains this, and I think this is
> the source:
> 0	string	;;			text/plain	8bit
> I guess somehow the tab past the content type isn't stripped away, but
> instead escaped and left in the header.
> Can others confirm this behavior? Ideas how to fix this?
I guess you could try replacing the tab in the magic file with a space.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message