php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50247 header "Content-type" instead of "Content-Type"
Submitted: 2009-11-20 16:30 UTC Modified: 2009-11-20 18:08 UTC
From: yvan dot taviaud at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.2.11 OS: Linux Debian stable (Lenny)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yvan dot taviaud at gmail dot com
New email:
PHP Version: OS:

 

 [2009-11-20 16:30 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-20 17:51 UTC] jani@php.net
And what problem is there with that?
 [2009-11-20 18:03 UTC] 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 18:08 UTC] jani@php.net
Yes, never trust them to be in certain case.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 16:01:33 2025 UTC