[BACK]Return to fetch.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/fetch.c between version 1.97 and 1.98

version 1.97, 2009/10/16 12:28:04 version 1.98, 2010/06/03 07:39:53
Line 671 
Line 671 
         switch (status) {          switch (status) {
         case 200:       /* OK */          case 200:       /* OK */
 #ifndef SMALL  #ifndef SMALL
                   /*
                    * When we request a partial file, and we receive an HTTP 200
                    * it is a good indication that the server doesn't support
                    * range requests, and is about to send us the entire file.
                    * If the restart_point == 0, then we are not actually
                    * requesting a partial file, and an HTTP 200 is appropriate.
                    */
                   if (resume && restart_point != 0) {
                           warnx("Server does not support resume.");
                           restart_point = resume = 0;
                   }
         case 206:       /* Partial Content */          case 206:       /* Partial Content */
 #endif /* !SMALL */  #endif /* !SMALL */
                 break;                  break;

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98