[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mldonkey-commits] mldonkey config/wget.c distrib/ChangeLog
From: |
mldonkey-commits |
Subject: |
[Mldonkey-commits] mldonkey config/wget.c distrib/ChangeLog |
Date: |
Fri, 19 May 2006 23:18:59 +0000 |
CVSROOT: /sources/mldonkey
Module name: mldonkey
Branch:
Changes by: spiralvoice <address@hidden> 06/05/19 23:18:59
Modified files:
config : wget.c
distrib : ChangeLog
Log message:
patch #5113
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/mldonkey/mldonkey/config/wget.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/mldonkey/mldonkey/distrib/ChangeLog.diff?tr1=1.839&tr2=1.840&r1=text&r2=text
Patches:
Index: mldonkey/config/wget.c
diff -u mldonkey/config/wget.c:1.4 mldonkey/config/wget.c:1.5
--- mldonkey/config/wget.c:1.4 Thu Aug 19 07:56:51 2004
+++ mldonkey/config/wget.c Fri May 19 23:18:59 2006
@@ -73,6 +73,8 @@
int fd ;
char buf[2000];
int nread;
+ char c = 0;
+
outfile = malloc(256);
parse_url (url, host, &port, pathname, outfile);
@@ -123,10 +125,16 @@
}
printf( "Connected\n") ;
- sprintf( buf, "GET %s\r\n\r\n", pathname );
+ sprintf( buf, "GET %s HTTP/1.0\r\nHost: %s\r\n\r\n", pathname, host );
write(fd, buf, strlen(buf));
+ while((nread = read(fd, buf, 1)) > 0){
+ if(buf[0] == '\n' && (c == '\n')) break;
+ if(buf[0] == '\r') continue;
+ c = buf[0];
+ }
+
while ((nread = read(fd, buf, sizeof(buf)))>0){
write(f, buf, nread);
}
Index: mldonkey/distrib/ChangeLog
diff -u mldonkey/distrib/ChangeLog:1.839 mldonkey/distrib/ChangeLog:1.840
--- mldonkey/distrib/ChangeLog:1.839 Fri May 19 22:09:29 2006
+++ mldonkey/distrib/ChangeLog Fri May 19 23:18:59 2006
@@ -15,6 +15,7 @@
=========
2006/05/20
+5113: Fix config/wget.c (zet)
5111: Configure: Fix $SOURCE_DIR broken since patch #5095
5109: New option: pause_new_downloads
- Set to true all new downloads will be paused automatically.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Mldonkey-commits] mldonkey config/wget.c distrib/ChangeLog,
mldonkey-commits <=