From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: guile-www http:status-code Date: Sat, 04 Oct 2003 09:49:32 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <874qyp7ugj.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1065225042 885 80.91.224.253 (3 Oct 2003 23:50:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2003 23:50:42 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Oct 04 01:50:41 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A5Zh2-00038M-00 for ; Sat, 04 Oct 2003 01:50:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A5Zgk-0001Kw-83 for guile-devel@m.gmane.org; Fri, 03 Oct 2003 19:50:22 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A5Zgd-0001Ki-Ih for guile-devel@gnu.org; Fri, 03 Oct 2003 19:50:15 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A5Zg7-00014y-Fy for guile-devel@gnu.org; Fri, 03 Oct 2003 19:50:14 -0400 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A5Zg6-00014s-Jx for guile-devel@gnu.org; Fri, 03 Oct 2003 19:49:42 -0400 Original-Received: from mongrel.pacific.net.au (mongrel.pacific.net.au [61.8.0.107]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id h93NneYH003973 for ; Sat, 4 Oct 2003 09:49:40 +1000 Original-Received: from localhost (ppp71.dyn228.pacific.net.au [203.143.228.71]) by mongrel.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id h93NkUst018800 for ; Sat, 4 Oct 2003 09:46:31 +1000 Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 1A5Zfy-0007d0-00; Sat, 04 Oct 2003 09:49:34 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2843 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2843 --=-=-= * http.scm (http:message-status-ok?): Use http:message-status-code, not non-existant http:status-code. The problem can be seen with for instance, (use-modules (www url) (www http)) (http:message-status-ok? (http:get (url:parse "http://www.zip.com.au"))) giving an error ERROR: Unbound variable: http:status-code --=-=-= Content-Disposition: attachment; filename=http.scm.status-code.diff --- http.scm.~1.10.~ 1970-01-01 10:00:01.000000000 +1000 +++ http.scm 2003-10-04 09:43:40.000000000 +1000 @@ -81,7 +81,7 @@ (define-public (http:message-status-code msg) (vector-ref msg 1)) (define-public (http:message-status-text msg) (vector-ref msg 2)) (define-public (http:message-status-ok? msg) - (http:status-ok? (http:status-code msg))) + (http:status-ok? (http:message-status-code msg))) (define-public (http:status-ok? status) (char=? #\2 (string-ref status 0))) --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel --=-=-=--