fix entity tag writing
authorAndy Wingo <wingo@pobox.com>
Mon, 6 Dec 2010 11:58:16 +0000 (12:58 +0100)
committerAndy Wingo <wingo@pobox.com>
Mon, 6 Dec 2010 11:58:16 +0000 (12:58 +0100)
* module/web/http.scm (write-entity-tag): Fix writing of entity tags
  (strong versus weak).

module/web/http.scm

index 2ebdb3b..bf54b23 100644 (file)
        (string? (car val))))
 
 (define (write-entity-tag val port)
-  (if (cdr val)
+  (if (not (cdr val))
       (display "W/" port))
   (write-qstring (car val) port))