[29332] trunk/base/src/pextlib1.0/curl.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 21 01:26:17 PDT 2007
Revision: 29332
http://trac.macosforge.org/projects/macports/changeset/29332
Author: afb at macports.org
Date: 2007-09-21 01:26:16 -0700 (Fri, 21 Sep 2007)
Log Message:
-----------
fix bug where Last-Modified header went into output
Modified Paths:
--------------
trunk/base/src/pextlib1.0/curl.c
Modified: trunk/base/src/pextlib1.0/curl.c
===================================================================
--- trunk/base/src/pextlib1.0/curl.c 2007-09-21 08:21:10 UTC (rev 29331)
+++ trunk/base/src/pextlib1.0/curl.c 2007-09-21 08:26:16 UTC (rev 29332)
@@ -269,6 +269,13 @@
break;
}
+ /* skip the header data */
+ theCurlCode = curl_easy_setopt(theHandle, CURLOPT_HEADER, 0);
+ 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/20070921/39194469/attachment.html
More information about the macports-changes
mailing list