cvs: pear /HTTP_Request Request.php
| From: | Alexey Borzov | Date: | Fri, 03 Sep 2004 15:31:58 +0000 |
| Subject: | cvs: pear /HTTP_Request Request.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-23600@lists.php.net to get a copy of this message | ||
avb Fri Sep 3 11:31:58 2004 EDT
Modified files:
/pear/HTTP_Request Request.php
Log:
Fixed #1692 (close the connection after performing request)
Fixed #1857 (incorrect request argument separator)
http://cvs.php.net/diff.php/pear/HTTP_Request/Request.php?r1=1.38&r2=1.39&ty=u
Index: pear/HTTP_Request/Request.php
diff -u pear/HTTP_Request/Request.php:1.38 pear/HTTP_Request/Request.php:1.39
--- pear/HTTP_Request/Request.php:1.38 Wed Jun 9 10:44:56 2004
+++ pear/HTTP_Request/Request.php Fri Sep 3 11:31:57 2004
@@ -32,7 +32,7 @@
// | Author: Richard Heyes <richard@phpguru.org> |
// +-----------------------------------------------------------------------+
//
-// $Id: Request.php,v 1.38 2004/06/09 14:44:56 avb Exp $
+// $Id: Request.php,v 1.39 2004/09/03 15:31:57 avb Exp $
//
// HTTP_Request Class
//
@@ -623,7 +623,9 @@
} elseif ($this->_allowRedirects AND $this->_redirects > $this->_maxRedirects)
{
return PEAR::raiseError('Too many redirects');
}
-
+
+ $this->_sock->disconnect();
+
return true;
}
@@ -685,7 +687,10 @@
*/
function _buildRequest()
{
+ $separator = ini_get('arg_separator.output');
+ ini_set('arg_separator.output', '&');
$querystring = ($querystring = $this->_url->getQueryString()) ? '?' .
$querystring : '';
+ ini_set('arg_separator.output', $separator);
$host = isset($this->_proxy_host) ? $this->_url->protocol . '://' .
$this->_url->host : '';
$port = (isset($this->_proxy_host) AND $this->_url->port != 80) ? ':' .
$this->_url->port : '';