From 1a2ac66b7db3c229b508b9b1fb68bcc5b4a6b907 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 27 Aug 1997 10:10:45 -0400 Subject: snapshot of project "lynx", label v2-7-1ac_0-55 --- WWW/Library/Implementation/HTFile.c | 15 ++++++++------- WWW/Library/Implementation/HTTP.c | 4 ++-- WWW/Library/unix/makefile.in | 4 ++++ 3 files changed, 14 insertions(+), 9 deletions(-) (limited to 'WWW/Library') diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c index 53f082ab..4d21093a 100644 --- a/WWW/Library/Implementation/HTFile.c +++ b/WWW/Library/Implementation/HTFile.c @@ -46,6 +46,10 @@ #endif /* LONG_LIST */ #endif /* !VMS */ +#ifdef USE_ZLIB +#include +#endif + #define INFINITY 512 /* file name length @@ FIXME */ #define MULTI_SUFFIX ".multi" /* Extension for scanning formats */ @@ -1423,7 +1427,7 @@ PUBLIC int HTLoadFile ARGS4( extern char *list_format; #endif /* VMS */ #ifdef USE_ZLIB - gzFile gzfp; + gzFile gzfp = 0; BOOL use_gzread = NO; #endif /* USE_ZLIB */ @@ -1645,7 +1649,7 @@ PUBLIC int HTLoadFile ARGS4( "Could not open file for decompression!"); } } else -#endif /* USE_GZREAD */ +#endif /* USE_ZLIB */ { status = HTParseFile(format, format_out, anchor, fp, sink); fclose(fp); @@ -1787,9 +1791,7 @@ forget_multi: base[-1] = '/'; /* Restore directory name */ base[0] = '\0'; StrAllocCat(localname, best_name); - FREE(best_name); - /* goto open_file; */ /* Nope - might be a directory - kw */ - + FREE(best_name); } else { /* If not found suitable file */ FREE(localname); FREE(nodename); @@ -2147,7 +2149,6 @@ forget_multi: /* End of directory reading section */ #endif /* HAVE_READDIR */ -open_file: { FILE * fp = fopen(localname, "r"); @@ -2242,7 +2243,7 @@ open_file: "Could not open file for decompression!"); } } else -#endif /* USE_GZREAD */ +#endif /* USE_ZLIB */ { status = HTParseFile(format, format_out, anchor, fp, sink); fclose(fp); diff --git a/WWW/Library/Implementation/HTTP.c b/WWW/Library/Implementation/HTTP.c index f56f2daa..d5aef1e8 100644 --- a/WWW/Library/Implementation/HTTP.c +++ b/WWW/Library/Implementation/HTTP.c @@ -281,7 +281,7 @@ try_again: HTAtom_name(pres->rep), temp); len += strlen(line); - if (len > 1000 && !first_Accept) { + if (len > 252 && !first_Accept) { StrAllocCat(command, crlf); sprintf(line, "Accept: %s%s", HTAtom_name(pres->rep), @@ -293,7 +293,7 @@ try_again: } } } - sprintf(line, "%s*/*;q=0.001%c%c", + sprintf(line, "%s*/*;q=0.01%c%c", (first_Accept ? "Accept: " : ", "), CR, LF); StrAllocCat(command, line); diff --git a/WWW/Library/unix/makefile.in b/WWW/Library/unix/makefile.in index 1875b7a3..7f221b33 100644 --- a/WWW/Library/unix/makefile.in +++ b/WWW/Library/unix/makefile.in @@ -52,3 +52,7 @@ all : $(LOB)/libwww.a @SHOW_CC@ @ECHO_CC@$(CPP) -C $(CPPOPTS) $*.c >$@ +depend : + makedepend -fmakefile -- $(CFLAGS) -- $(CFILES) + +# DO NOT DELETE THIS LINE -- make depend depends on it. -- cgit 1.4.1-2-gfad0