]> git.wh0rd.org - tt-rss.git/commitdiff
simplepie: enable digest authentication
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 27 Dec 2010 12:42:31 +0000 (15:42 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 27 Dec 2010 12:42:31 +0000 (15:42 +0300)
lib/simplepie/simplepie.inc

index 45c33c86e27ba02a8ccf0f5f3dc2fbc1069783fa..49e9edf399891e1276b2eace997ade2a8cb2ed71 100644 (file)
@@ -7690,6 +7690,10 @@ class SimplePie_File
                                        curl_setopt($fp, CURLOPT_MAXREDIRS, $redirects);
                                }
 
+                               /* Enable Digest authentication and SSL -fox */
+                               curl_setopt($fp, CURLOPT_SSL_VERIFYPEER, false); 
+                               curl_setopt($fp, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
+
                                $this->headers = curl_exec($fp);
                                if (curl_errno($fp) === 23 || curl_errno($fp) === 61)
                                {