Home » HTTP » HTTP_Download » Bug #2998
Typo
Details
| Submitted | 2004-12-21 00:43 UTC |
|---|---|
| From | jparsons at goforthnet dot com |
| Assigned | mike |
| Status | Closed |
| Package | HTTP_Download |
| PHP Version | 4.3.9 |
| OS | any |
| Roadmaps | (Not assigned) |
Comments
[2004-12-21 00:43 UTC] jparsons at goforthnet dot com
Description:
------------
Line 577 of Download.php has HTTP_DOWNLOAD_E_INVALID_CONTENT_TYPE typed as HTTP_DONWLOAD_E_INVALID_CONTENT_TYPE
Reproduce code:
---------------
--- Download.php (revision 28)
+++ Download.php (working copy)
@@ -552,7 +552,7 @@
* (HTTP_DOWNLOAD_E_NO_EXT_MMAGIC)
* o mime_content_type() couldn't guess content type or returned
* a content type considered to be bogus by setContentType()
- * (HTTP_DONWLOAD_E_INVALID_CONTENT_TYPE)
+ * (HTTP_DOWNLOAD_E_INVALID_CONTENT_TYPE)
*
* @access public
* @return mixed Returns true on success or PEAR_Error on failure.
@@ -574,7 +574,7 @@
if (!$content_type = @mime_content_type($this->file)) {
return PEAR::raiseError(
'Couldn\'t guess content type with mime_content_type().',
- HTTP_DONWLOAD_E_INVALID_CONTENT_TYPE
+ HTTP_DOWNLOAD_E_INVALID_CONTENT_TYPE
);
}
return $this->setContentType($content_type);