Doc #68653 [Opn->Csd]: Consistency for 'Content-Type' in header() examples
| From: | sobak@php.net | Date: | Fri, 26 Dec 2014 09:27:15 +0000 |
| Subject: | Doc #68653 [Opn->Csd]: Consistency for 'Content-Type' in header() examples | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11746@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68653&edit=1
ID: 68653
Updated by: sobak@php.net
Reported by: theultramage at gmail dot com
Summary: Consistency for 'Content-Type' in header() examples
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: sobak
Block user comment: N
Private report: N
New Comment:
As you noted, it's not really a bug, but I made it consistent, according to your suggestion.
Previous Comments:
------------------------------------------------------------------------
[2014-12-26 09:25:54] sobak@php.net
Automatic comment from SVN on behalf of sobak
Revision: http://svn.php.net/viewvc/?view=revision&revision=335374
Log: Consistency for 'Content-Type' header, as per bug/request #68653
------------------------------------------------------------------------
[2014-12-25 21:01:56] theultramage at gmail dot com
Description:
------------
In the documentation for the header() function ( http://php.net/manual/en/function.header.php
), one of the examples uses 'Content-Type' like this:
header('Content-type: application/pdf');
while all others capitalize the second word. I suggest fixing this inconsistency.
Even though the header names are officially case-insensitive, I assume everything follows the
notation used in the HTTP RFCs, which is 'Content-Type'.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68653&edit=1