#50247 [Fbk->Csd]: header "Content-type" instead of "Content-Type"
| From: | yvan dot taviaud at gmail dot com | Date: | Fri, 20 Nov 2009 18:03:17 +0000 |
| Subject: | #50247 [Fbk->Csd]: header "Content-type" instead of "Content-Type" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144877@lists.php.net to get a copy of this message | ||
ID: 50247
User updated by: yvan dot taviaud at gmail dot com
Reported By: yvan dot taviaud at gmail dot com
-Status: Feedback
+Status: Closed
Bug Type: *General Issues
Operating System: Linux Debian stable (Lenny)
PHP Version: 5.2.11
New Comment:
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...)
Previous Comments:
------------------------------------------------------------------------
[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