cvs: pear /HTTP_Request Request.php

From: Date: Sun, 26 Feb 2006 17:50:36 +0000
Subject: cvs: pear /HTTP_Request Request.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38645@lists.php.net to get a copy of this message
avb Sun Feb 26 17:50:36 2006 UTC Modified files: /pear/HTTP_Request Request.php Log: Applied patch from bug #5913 (Proxy-Authorization header not added in constructor) http://cvs.php.net/viewcvs.cgi/pear/HTTP_Request/Request.php?r1=1.43&r2=1.44&diff_format=u Index: pear/HTTP_Request/Request.php diff -u pear/HTTP_Request/Request.php:1.43 pear/HTTP_Request/Request.php:1.44 --- pear/HTTP_Request/Request.php:1.43 Sun Nov 6 18:29:14 2005 +++ pear/HTTP_Request/Request.php Sun Feb 26 17:50:36 2006 @@ -32,7 +32,7 @@ // | Author: Richard Heyes <richard@phpguru.org> | // +-----------------------------------------------------------------------+ // -// $Id: Request.php,v 1.43 2005/11/06 18:29:14 avb Exp $ +// $Id: Request.php,v 1.44 2006/02/26 17:50:36 avb Exp $ // // HTTP_Request Class // @@ -278,6 +278,11 @@ $this->addHeader('Authorization', 'Basic ' . base64_encode($this->_user . ':' . $this->_pass)); } + // Proxy authentication (see bug #5913) + if (!empty($this->_proxy_user)) { + $this->addHeader('Proxy-Authorization', 'Basic ' . base64_encode($this->_proxy_user . ':' . $this->_proxy_pass)); + } + // Use gzip encoding if possible // Avoid gzip encoding if using multibyte functions (see #1781) if (HTTP_REQUEST_HTTP_VER_1_1 == $this->_http && extension_loaded('zlib') &&

« previous php.pear.cvs (#38645) next »