[22772] branches/release_1_4/src/pextlib1.0/curl.c
source_changes at macosforge.org
source_changes at macosforge.org
Tue Mar 13 20:15:39 PDT 2007
Revision: 22772
http://trac.macosforge.org/projects/macports/changeset/22772
Author: eridius at macports.org
Date: 2007-03-13 20:15:39 -0700 (Tue, 13 Mar 2007)
Log Message:
-----------
Merge r22771 to 1.4
Modified Paths:
--------------
branches/release_1_4/src/pextlib1.0/curl.c
Modified: branches/release_1_4/src/pextlib1.0/curl.c
===================================================================
--- branches/release_1_4/src/pextlib1.0/curl.c 2007-03-14 03:14:54 UTC (rev 22771)
+++ branches/release_1_4/src/pextlib1.0/curl.c 2007-03-14 03:15:39 UTC (rev 22772)
@@ -251,6 +251,13 @@
break;
}
+ /* -A option */
+ theCurlCode = curl_easy_setopt(theHandle, CURLOPT_USERAGENT, "MacPorts libcurl/" LIBCURL_VERSION);
+ if (theCurlCode != CURLE_OK) {
+ theResult = SetResultFromCurlErrorCode(interp, theCurlCode);
+ break;
+ }
+
/* write to the file */
theCurlCode = curl_easy_setopt(theHandle, CURLOPT_WRITEDATA, theFile);
if (theCurlCode != CURLE_OK) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070313/ea35cb60/attachment.html
More information about the macports-changes
mailing list