From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robert Marlow Newsgroups: gmane.lisp.guile.bugs Subject: Bug in http module of guile-www Date: Wed, 14 Jul 2004 15:38:17 +0800 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: <1089790696.598.19.camel@venkman> Reply-To: bobstopper@bobturf.org NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1089790849 29369 80.91.224.253 (14 Jul 2004 07:40:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Jul 2004 07:40:49 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Jul 14 09:40:39 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BkeNb-0003g8-00 for ; Wed, 14 Jul 2004 09:40:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkeQ0-00037q-Vy for guile-bugs@m.gmane.org; Wed, 14 Jul 2004 03:43:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BkePx-00037k-2Z for bug-guile@gnu.org; Wed, 14 Jul 2004 03:43:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BkePt-00037G-Bc for bug-guile@gnu.org; Wed, 14 Jul 2004 03:43:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BkePt-00037D-5z for bug-guile@gnu.org; Wed, 14 Jul 2004 03:43:01 -0400 Original-Received: from [202.72.168.72] (helo=spengler.bobturf.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BkeNG-00020F-QN for bug-guile@gnu.org; Wed, 14 Jul 2004 03:40:19 -0400 Original-Received: from venkman.bobturf.org (venkman.bobturf.org [192.168.153.12]) by spengler.bobturf.org (Postfix) with ESMTP id 0C722CBA17 for ; Wed, 14 Jul 2004 15:40:12 +0800 (WST) Original-To: bug-guile@gnu.org X-Mailer: Ximian Evolution 1.4.6 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:1543 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:1543 Hi all (I hope I'm posting this to the correct list. IIRC you guys also handle guile-www) I happened accross a bug in the HTTP module of guile-www which seemed to trigger when I visited a page which gave no headers and just whitespace in the body. In such a case the variable "second" of parse-status-line gets bound to #f which messes up the later make-shared-substrings which use it. Admittedly I didn't really study the http module too much to figure out what that procedure was meant to do or the exact nature of the fail, but I did produce a quick fix which worked for my purposes. Whether it's correct or not I have no idea. Anyway, it's simple enough for those who would know such things to digest and decide: 139,140c139,144 < (make-shared-substring statline (1+ first) second) < (make-shared-substring statline (1+ second))))) --- > (if second > (make-shared-substring statline (1+ first) second) > #f) > (if second > (make-shared-substring statline (1+ second)) > #f)))) Apologies it's not in unified diff. The diff on this machine doesn't seem to support it. -- Regards, Robert Marlow _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile