no sxml, no body
* tekuti/page-helpers.scm (respond): Give no body if there is no SXML. Fixes perhaps spurious errors raised by Guile's web server.
This commit is contained in:
parent
82c7790016
commit
8034123827
1 changed files with 4 additions and 5 deletions
|
@ -94,11 +94,10 @@
|
|||
date (current-date)
|
||||
etag (if (string? etag) (cons etag #t) etag)
|
||||
extra-headers))
|
||||
(and sxml
|
||||
(lambda (port)
|
||||
(if sxml
|
||||
(begin
|
||||
(if doctype (display doctype port))
|
||||
(sxml->xml sxml port))))))
|
||||
(sxml->xml sxml port)))))
|
||||
|
||||
(define (unparse-www-form-urlencoded alist)
|
||||
(string-join (map (lambda (pair)
|
||||
|
|
Loading…
Reference in a new issue