[Chameleon-dev] [Bug 1757] New: [php_utils] HTTPClient: does not
set returned content-type
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Thu Jul 26 09:06:50 EDT 2007
http://bugzilla.maptools.org/show_bug.cgi?id=1757
Summary: [php_utils] HTTPClient: does not set returned content-
type
Product: Chameleon
Version: 2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: chameleon-dev at lists.maptools.org
ReportedBy: bartvde at osgis.nl
The following patch fixes this for curl connections:
--- /opt/chameleon/htdocs/common/http/HTTPClient.php 2007-05-08
15:46:41.000000000 +0200
+++ HTTPClient.php 2007-07-18 11:17:00.000000000 +0200
@@ -38,6 +38,9 @@
/* last error message */
var $mszLastError;
+ /* content-type returned */
+ var $mszContentType;
+
/* @abstract(constructor) */
function HTTPClient($szOnlineResource, $iTimeout)
{
@@ -93,6 +96,8 @@
}
else
{
+ $info = curl_getinfo($ch);
+ $this->mszContentType = $info['content_type'];
curl_close($ch);
if ($fpOut)
{
@@ -183,6 +188,8 @@
}
else
{
+ $info = curl_getinfo($ch);
+ $this->mszContentType = $info['content_type'];
curl_close($ch);
if ($fpOut)
{
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list