#50247 [Csd->Bgs]: header "Content-type" instead of "Content-Type"
| From: | jani@php.net | Date: | Fri, 20 Nov 2009 18:08:18 +0000 |
| Subject: | #50247 [Csd->Bgs]: header "Content-type" instead of "Content-Type" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144878@lists.php.net to get a copy of this message | ||
ID: 50247
Updated by: jani@php.net
Reported By: yvan dot taviaud at gmail dot com
-Status: Closed
+Status: Bogus
Bug Type: *General Issues
Operating System: Linux Debian stable (Lenny)
PHP Version: 5.2.11
New Comment:
Yes, never trust them to be in certain case.
Previous Comments:
------------------------------------------------------------------------
[2009-11-20 18:03:17] yvan dot taviaud at gmail dot com
Hum, I'm sorry, I thought field names where case-sensitive, which is
not according to the RFC
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2):
«Field names are case-insensitive»
I'm closing the bug (and I'll have to fix a lot of code...)
------------------------------------------------------------------------
[2009-11-20 17:51:56] jani@php.net
And what problem is there with that?
------------------------------------------------------------------------
[2009-11-20 16:30:46] yvan dot taviaud at gmail dot com
Description:
------------
When default_mimetype is set (say "text/html"), and no Content-Type
header is sent, PHP adds the following header:
Content-type: text/html
It should send the following instead:
Content-Type: text/html
Reproduce code:
---------------
Just query a page with <?php echo "Hello World!" ?> in it, and see the
headers.
Expected result:
----------------
Content-Type: text/html
Actual result:
--------------
Content-type: text/html
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50247&edit=1