httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hanno Böck <>
Subject [users@httpd] Malformed header "Content-Type: text/plain\t" with .el file
Date Tue, 11 Apr 2017 19:15:14 GMT

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

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

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?

Hanno Böck

GPG: FE73757FA60E4E21B937579FA5880072BBB51E42

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

View raw message