unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* guile-www http:status-code
@ 2003-10-03 23:49 Kevin Ryde
  0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2003-10-03 23:49 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

        * 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


[-- Attachment #2: http.scm.status-code.diff --]
[-- Type: text/plain, Size: 484 bytes --]

--- 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)))
 

[-- Attachment #3: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-03 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-03 23:49 guile-www http:status-code Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).