[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.216 and 1.217

version 1.216, 2023/06/28 17:35:06 version 1.217, 2024/04/17 09:51:18
Line 705 
Line 705 
                  */                   */
                 ftp_printf(fin, "GET %s HTTP/1.1\r\n"                  ftp_printf(fin, "GET %s HTTP/1.1\r\n"
                     "Connection: close\r\n"                      "Connection: close\r\n"
                     "Host: %s\r\n%s%s\r\n",                      "Host: %s\r\n%s%s\r\n"
                       "Accept: */*\r\n",
                     epath, proxyhost, buf ? buf : "", httpuseragent);                      epath, proxyhost, buf ? buf : "", httpuseragent);
                 if (credentials)                  if (credentials)
                         ftp_printf(fin, "Authorization: Basic %s\r\n",                          ftp_printf(fin, "Authorization: Basic %s\r\n",
Line 773 
Line 774 
                         ftp_printf(fin, "\r\nIf-Modified-Since: %s", tmbuf);                          ftp_printf(fin, "\r\nIf-Modified-Since: %s", tmbuf);
 #endif /* SMALL */  #endif /* SMALL */
   
                 ftp_printf(fin, "\r\n%s%s\r\n",                  ftp_printf(fin, "\r\n%s%s\r\n", buf ? buf : "", httpuseragent);
                     buf ? buf : "", httpuseragent);                  ftp_printf(fin, "Accept: */*\r\n");
                 if (credentials)                  if (credentials)
                         ftp_printf(fin, "Authorization: Basic %s\r\n",                          ftp_printf(fin, "Authorization: Basic %s\r\n",
                             credentials);                              credentials);

Legend:
Removed from v.1.216  
changed lines
  Added in v.1.217