Mailinglist Archive: zypp-commit (223 mails)

< Previous Next >
[zypp-commit] r10559 - /trunk/libzypp/zypp/media/MediaCurl.cc
  • From: jkupec@xxxxxxxxxxxxxxxx
  • Date: Sat, 12 Jul 2008 20:14:20 -0000
  • Message-id: <20080712201420.63ADE3015C@xxxxxxxxxxxxxxxx>
Author: jkupec
Date: Sat Jul 12 22:14:19 2008
New Revision: 10559

URL: http://svn.opensuse.org/viewcvs/zypp?rev=10559&view=rev
Log:
- make curl use the right transfer (CURLOPT_PROXY_TRANSFER_MODE) mode
when proxy is used (bnc #306272)

Modified:
trunk/libzypp/zypp/media/MediaCurl.cc

Modified: trunk/libzypp/zypp/media/MediaCurl.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/media/MediaCurl.cc?rev=10559&r1=10558&r2=10559&view=diff
==============================================================================
--- trunk/libzypp/zypp/media/MediaCurl.cc (original)
+++ trunk/libzypp/zypp/media/MediaCurl.cc Sat Jul 12 22:14:19 2008
@@ -646,6 +646,14 @@
ZYPP_THROW(MediaCurlSetOptException(_url, _curlError));
}

+ // bnc #306272
+ ret = curl_easy_setopt( _curl, CURLOPT_PROXY_TRANSFER_MODE, 1 );
+ if ( ret != 0 ) {
+ disconnectFrom();
+ ZYPP_THROW(MediaCurlSetOptException(_url, _curlError));
+ }
+
+
// FIXME: need a derived class to propelly compare url's
MediaSourceRef media( new MediaSource(_url.getScheme(), _url.asString()));
setMediaSource(media);

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages