[Pkg-owncloud-commits] [php-sabredav] 71/80: Setting a default UA.

David Prévot taffit at moszumanska.debian.org
Thu Jan 7 02:56:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabredav.

commit 629322055d53f0a8003686ff7b0b18237d301fbf
Author: Evert Pot <me at evertpot.com>
Date:   Tue Jan 5 02:01:54 2016 -0500

    Setting a default UA.
    
    Closes #512.
---
 CHANGELOG.md       | 1 +
 lib/DAV/Client.php | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index cc7da86..f0c4bac 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -25,6 +25,7 @@ ChangeLog
   cases where no other plugin set a correct HTTP status.
 * #686: Corrected PDO principal backend's findByURI for email addresses that
   don't match the exact capitalization.
+* #512: The client now has it's own `User-Agent`.
 
 
 3.1.0-alpha2 (2015-09-05)
diff --git a/lib/DAV/Client.php b/lib/DAV/Client.php
index 287e6df..d46b397 100644
--- a/lib/DAV/Client.php
+++ b/lib/DAV/Client.php
@@ -165,6 +165,8 @@ class Client extends HTTP\Client {
             $this->addCurlSetting(CURLOPT_ENCODING, implode(',', $encodings));
         }
 
+        $this->addCurlSetting(CURLOPT_USERAGENT, 'sabre-dav/' . Version::VERSION . ' (http://sabre.io/)');
+
         $this->xml = new Xml\Service();
         // BC
         $this->propertyMap = & $this->xml->elementMap;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git



More information about the Pkg-owncloud-commits mailing list