PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTTP » HTTP_Download » Bug #2998

Typo

Details

Submitted2004-12-21 00:43 UTC
Fromjparsons at goforthnet dot com
Assignedmike
StatusClosed
PackageHTTP_Download
PHP Version4.3.9
OSany
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);