aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-04-03 20:56:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-04-03 20:56:59 +0000
commitd051dd80874bffcd6df56a09ba6cc2cf29de4d88 (patch)
treedfd6035c3114d0952f62c1a2171f6de6672b3867
parentbf52cef16fd2cc1ad83f760059d27f49f036c3eb (diff)
Scott Barrett added support for CURLOPT_NOBODY over SFTP
-rw-r--r--CHANGES3
-rw-r--r--RELEASE-NOTES3
-rw-r--r--TODO-RELEASE2
-rw-r--r--lib/ssh.c4
4 files changed, 8 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index 4a528958f..e55bd540a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,9 @@
Changelog
+Daniel Stenberg (3 Apr 2008)
+- Scott Barrett added support for CURLOPT_NOBODY over SFTP
+
Daniel Fandrich (3 Apr 2008)
- Made sure that curl_global_init is called in all the multithreaded
example programs.
diff --git a/RELEASE-NOTES b/RELEASE-NOTES
index e97294987..19a053ea1 100644
--- a/RELEASE-NOTES
+++ b/RELEASE-NOTES
@@ -11,6 +11,7 @@ Curl and libcurl 7.18.2
This release includes the following changes:
o CURLFORM_STREAM was added
+ o CURLOPT_NOBODY is now supported over SFTP
This release includes the following bugfixes:
@@ -31,6 +32,6 @@ New curl mirrors:
This release would not have looked like this without help, code, reports and
advice from friends like these:
-
+ Michal Marek, Daniel Fandrich, Scott Barrett
Thanks! (and sorry if I forgot to mention someone)
diff --git a/TODO-RELEASE b/TODO-RELEASE
index 527778cc4..1a6e18846 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -7,8 +7,6 @@ To be addressed before 7.18.2 (planned release: June 2008)
130 - Vincent Le Normand's SFTP patch for touch (lacking feedback)
-131 - Scott Barrett's Support for CURLOPT_NOBODY with SFTP
-
133 - Setting CURLOPT_NOBODY to "false" causes cURL to wait for content if a
content-length header is read
diff --git a/lib/ssh.c b/lib/ssh.c
index b238e9c3b..5d82b53c2 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -1180,7 +1180,9 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
if(data->set.upload)
state(conn, SSH_SFTP_UPLOAD_INIT);
else {
- if(sftp_scp->path[strlen(sftp_scp->path)-1] == '/')
+ if(data->set.opt_no_body)
+ state(conn, SSH_STOP);
+ else if(sftp_scp->path[strlen(sftp_scp->path)-1] == '/')
state(conn, SSH_SFTP_READDIR_INIT);
else
state(conn, SSH_SFTP_DOWNLOAD_INIT);